Module Name: src Committed By: maxv Date: Sun Feb 5 08:42:49 UTC 2017
Modified Files: src/sys/compat/linux/arch/amd64: linux_machdep.c Log Message: Missing pmap_ldt_cleanup. To generate a diff of this commit: cvs rdiff -u -r1.48 -r1.49 src/sys/compat/linux/arch/amd64/linux_machdep.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/compat/linux/arch/amd64/linux_machdep.c diff -u src/sys/compat/linux/arch/amd64/linux_machdep.c:1.48 src/sys/compat/linux/arch/amd64/linux_machdep.c:1.49 --- src/sys/compat/linux/arch/amd64/linux_machdep.c:1.48 Wed Feb 19 20:50:56 2014 +++ src/sys/compat/linux/arch/amd64/linux_machdep.c Sun Feb 5 08:42:49 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_machdep.c,v 1.48 2014/02/19 20:50:56 dsl Exp $ */ +/* $NetBSD: linux_machdep.c,v 1.49 2017/02/05 08:42:49 maxv Exp $ */ /*- * Copyright (c) 2005 Emmanuel Dreyfus, all rights reserved. @@ -33,7 +33,7 @@ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux_machdep.c,v 1.48 2014/02/19 20:50:56 dsl Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_machdep.c,v 1.49 2017/02/05 08:42:49 maxv Exp $"); #include <sys/param.h> #include <sys/types.h> @@ -84,6 +84,10 @@ linux_setregs(struct lwp *l, struct exec struct pcb *pcb = lwp_getpcb(l); struct trapframe *tf; +#ifdef USER_LDT + pmap_ldt_cleanup(l); +#endif + fpu_save_area_clear(l, __NetBSD_NPXCW__); pcb->pcb_flags = 0;