Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/amd64/amd64 cpu_fsgs_zero: always clear tf_fs and t...
details: https://anonhg.NetBSD.org/src/rev/8c79e768eaf1
branches: trunk
changeset: 758141:8c79e768eaf1
user: yamt <yamt%NetBSD.org@localhost>
date: Thu Oct 21 11:22:55 2010 +0000
description:
cpu_fsgs_zero: always clear tf_fs and tf_gs.
diffstat:
sys/arch/amd64/amd64/machdep.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r 62d081381d52 -r 8c79e768eaf1 sys/arch/amd64/amd64/machdep.c
--- a/sys/arch/amd64/amd64/machdep.c Thu Oct 21 11:17:54 2010 +0000
+++ b/sys/arch/amd64/amd64/machdep.c Thu Oct 21 11:22:55 2010 +0000
@@ -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;
}
Home |
Main Index |
Thread Index |
Old Index