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 Revert last and instead #include <x86/fpu.h...
details: https://anonhg.NetBSD.org/src/rev/ee2f77c909a3
branches: trunk
changeset: 357261:ee2f77c909a3
user: kre <kre%NetBSD.org@localhost>
date: Fri Nov 03 16:21:01 2017 +0000
description:
Revert last and instead #include <x86/fpu.h> to get the needed prototype.
diffstat:
sys/arch/x86/x86/identcpu.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 319a04a9988b -r ee2f77c909a3 sys/arch/x86/x86/identcpu.c
--- a/sys/arch/x86/x86/identcpu.c Fri Nov 03 15:31:48 2017 +0000
+++ b/sys/arch/x86/x86/identcpu.c Fri Nov 03 16:21:01 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: identcpu.c,v 1.63 2017/11/03 13:11:39 kre Exp $ */
+/* $NetBSD: identcpu.c,v 1.64 2017/11/03 16:21:01 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.63 2017/11/03 13:11:39 kre Exp $");
+__KERNEL_RCSID(0, "$NetBSD: identcpu.c,v 1.64 2017/11/03 16:21:01 kre Exp $");
#include "opt_xen.h"
@@ -49,6 +49,7 @@
#include <x86/cacheinfo.h>
#include <x86/cpuvar.h>
#include <x86/cpu_msr.h>
+#include <x86/fpu.h>
#include <x86/x86/vmtreg.h> /* for vmt_hvcall() */
#include <x86/x86/vmtvar.h> /* for vmt_hvcall() */
@@ -752,9 +753,7 @@
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