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 XEN apparently has no fpuinit_mxcsr_mask() ...
details: https://anonhg.NetBSD.org/src/rev/94ee5a74a315
branches: trunk
changeset: 357258:94ee5a74a315
user: kre <kre%NetBSD.org@localhost>
date: Fri Nov 03 13:11:39 2017 +0000
description:
XEN apparently has no fpuinit_mxcsr_mask() and hasn't needed it until
now, so just omit this (as it was before) for XEN. If this is not
correct, someone who knows x86's & the XEN interface can fix it, but
at least it should build, and be essentially the same as before now.
diffstat:
sys/arch/x86/x86/identcpu.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r 7e1e28b6ddbb -r 94ee5a74a315 sys/arch/x86/x86/identcpu.c
--- a/sys/arch/x86/x86/identcpu.c Fri Nov 03 13:01:26 2017 +0000
+++ b/sys/arch/x86/x86/identcpu.c Fri Nov 03 13:11:39 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: identcpu.c,v 1.62 2017/11/03 07:14:24 maxv Exp $ */
+/* $NetBSD: identcpu.c,v 1.63 2017/11/03 13:11:39 kre 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.62 2017/11/03 07:14:24 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: identcpu.c,v 1.63 2017/11/03 13:11:39 kre Exp $");
#include "opt_xen.h"
@@ -752,7 +752,9 @@
x86_fpu_save = FPU_SAVE_FXSAVE;
+#ifndef XEN
fpuinit_mxcsr_mask();
+#endif
/* See if xsave (for AVX) is supported */
if ((ci->ci_feat_val[1] & CPUID2_XSAVE) == 0)
Home |
Main Index |
Thread Index |
Old Index