Module Name:    src
Committed By:   kre
Date:           Fri Nov  3 13:11:39 UTC 2017

Modified Files:
        src/sys/arch/x86/x86: identcpu.c

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.62 -r1.63 src/sys/arch/x86/x86/identcpu.c

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/x86/identcpu.c
diff -u src/sys/arch/x86/x86/identcpu.c:1.62 src/sys/arch/x86/x86/identcpu.c:1.63
--- src/sys/arch/x86/x86/identcpu.c:1.62	Fri Nov  3 07:14:24 2017
+++ src/sys/arch/x86/x86/identcpu.c	Fri Nov  3 13:11:39 2017
@@ -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 @@ cpu_probe_fpu(struct cpu_info *ci)
 
 	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)

Reply via email to