Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x86/x86 Enable XSAVEOPT.
details: https://anonhg.NetBSD.org/src/rev/a284780fb722
branches: trunk
changeset: 464936:a284780fb722
user: maxv <maxv%NetBSD.org@localhost>
date: Tue Oct 29 12:39:46 2019 +0000
description:
Enable XSAVEOPT.
diffstat:
sys/arch/x86/x86/identcpu.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diffs (30 lines):
diff -r daf2b16fb8b6 -r a284780fb722 sys/arch/x86/x86/identcpu.c
--- a/sys/arch/x86/x86/identcpu.c Tue Oct 29 10:54:10 2019 +0000
+++ b/sys/arch/x86/x86/identcpu.c Tue Oct 29 12:39:46 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: identcpu.c,v 1.97 2019/10/21 10:09:24 maxv Exp $ */
+/* $NetBSD: identcpu.c,v 1.98 2019/10/29 12:39:46 maxv Exp $ */
/*-
* Copyright (c) 1999, 2000, 2001, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: identcpu.c,v 1.97 2019/10/21 10:09:24 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: identcpu.c,v 1.98 2019/10/29 12:39:46 maxv Exp $");
#include "opt_xen.h"
@@ -804,11 +804,9 @@
x86_fpu_save = FPU_SAVE_XSAVE;
-#if 0 /* XXX PR 52966 */
x86_cpuid2(0xd, 1, descs);
if (descs[0] & CPUID_PES1_XSAVEOPT)
x86_fpu_save = FPU_SAVE_XSAVEOPT;
-#endif
/* Get features and maximum size of the save area */
x86_cpuid(0xd, descs);
Home |
Main Index |
Thread Index |
Old Index