Module Name: src Committed By: yamt Date: Thu Oct 21 11:22:55 UTC 2010
Modified Files: src/sys/arch/amd64/amd64: machdep.c Log Message: cpu_fsgs_zero: always clear tf_fs and tf_gs. To generate a diff of this commit: cvs rdiff -u -r1.150 -r1.151 src/sys/arch/amd64/amd64/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/arch/amd64/amd64/machdep.c diff -u src/sys/arch/amd64/amd64/machdep.c:1.150 src/sys/arch/amd64/amd64/machdep.c:1.151 --- src/sys/arch/amd64/amd64/machdep.c:1.150 Thu Oct 21 11:17:55 2010 +++ src/sys/arch/amd64/amd64/machdep.c Thu Oct 21 11:22:55 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.150 2010/10/21 11:17:55 yamt Exp $ */ +/* $NetBSD: machdep.c,v 1.151 2010/10/21 11:22:55 yamt Exp $ */ /*- * Copyright (c) 1996, 1997, 1998, 2000, 2006, 2007, 2008 @@ -107,7 +107,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.150 2010/10/21 11:17:55 yamt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.151 2010/10/21 11:22:55 yamt Exp $"); /* #define XENDEBUG_LOW */ @@ -1863,6 +1863,8 @@ update_descriptor(&curcpu()->ci_gdt[GUGS_SEL], &zero); kpreempt_enable(); } else { + tf->tf_fs = 0; + tf->tf_gs = 0; pcb->pcb_fs = 0; pcb->pcb_gs = 0; }