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 XSAVE (and hence AVX) under XEN by d...
details: https://anonhg.NetBSD.org/src/rev/b0569cd34ade
branches: trunk
changeset: 446003:b0569cd34ade
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Mon Nov 19 22:21:32 2018 +0000
description:
enable XSAVE (and hence AVX) under XEN by default, fixes PR kern/50332
okayed by maxv@
diffstat:
sys/arch/x86/x86/identcpu.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diffs (28 lines):
diff -r 88ca1654b7c3 -r b0569cd34ade sys/arch/x86/x86/identcpu.c
--- a/sys/arch/x86/x86/identcpu.c Mon Nov 19 22:05:22 2018 +0000
+++ b/sys/arch/x86/x86/identcpu.c Mon Nov 19 22:21:32 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: identcpu.c,v 1.82 2018/11/10 11:08:54 maxv Exp $ */
+/* $NetBSD: identcpu.c,v 1.83 2018/11/19 22:21:32 jdolecek 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.82 2018/11/10 11:08:54 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: identcpu.c,v 1.83 2018/11/19 22:21:32 jdolecek Exp $");
#include "opt_xen.h"
@@ -822,9 +822,7 @@
* supervisor trap. OSXSAVE flag seems to be reliably set according
* to whether XSAVE is actually available.
*/
-#ifdef XEN_USE_XSAVE
if ((ci->ci_feat_val[1] & CPUID2_OSXSAVE) == 0)
-#endif
return;
#endif
Home |
Main Index |
Thread Index |
Old Index