Module Name: src
Committed By: bouyer
Date: Fri Mar 2 16:41:00 UTC 2012
Modified Files:
src/sys/arch/x86/include: specialreg.h
Log Message:
Don't mask out CPUID_FXSR. If not set, the kernel won't handle SSE and SSE2
registers on context switches; leading to data corruption when running
binaries using these instructions (like e.g. binaries built with a
-mcpu newer than pentium 4, which enables theses instruction in gcc).
To generate a diff of this commit:
cvs rdiff -u -r1.55 -r1.56 src/sys/arch/x86/include/specialreg.h
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/x86/include/specialreg.h
diff -u src/sys/arch/x86/include/specialreg.h:1.55 src/sys/arch/x86/include/specialreg.h:1.56
--- src/sys/arch/x86/include/specialreg.h:1.55 Thu Dec 15 09:38:21 2011
+++ src/sys/arch/x86/include/specialreg.h Fri Mar 2 16:41:00 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: specialreg.h,v 1.55 2011/12/15 09:38:21 abs Exp $ */
+/* $NetBSD: specialreg.h,v 1.56 2012/03/02 16:41:00 bouyer Exp $ */
/*-
* Copyright (c) 1991 The Regents of the University of California.
@@ -307,7 +307,7 @@
/* Blacklists of CPUID flags - used to mask certain features */
#ifdef XEN
/* Not on Xen */
-#define CPUID_FEAT_BLACKLIST (CPUID_PGE|CPUID_PSE|CPUID_MTRR|CPUID_FXSR)
+#define CPUID_FEAT_BLACKLIST (CPUID_PGE|CPUID_PSE|CPUID_MTRR)
#else
#define CPUID_FEAT_BLACKLIST 0
#endif /* XEN */