Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x86/include Don't mask out CPUID_FXSR. If not set, ...
details: https://anonhg.NetBSD.org/src/rev/22f2a2914aad
branches: trunk
changeset: 777731:22f2a2914aad
user: bouyer <bouyer%NetBSD.org@localhost>
date: Fri Mar 02 16:41:00 2012 +0000
description:
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).
diffstat:
sys/arch/x86/include/specialreg.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 827a189572c2 -r 22f2a2914aad sys/arch/x86/include/specialreg.h
--- a/sys/arch/x86/include/specialreg.h Fri Mar 02 16:39:26 2012 +0000
+++ b/sys/arch/x86/include/specialreg.h Fri Mar 02 16:41:00 2012 +0000
@@ -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 */
Home |
Main Index |
Thread Index |
Old Index