summaryrefslogtreecommitdiffstats
path: root/sys/amd64/amd64/initcpu.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2001-08-24 08:27:24 +0000
committerpeter <peter@FreeBSD.org>2001-08-24 08:27:24 +0000
commit5ccbb1e22b45c1c388123f3802ea88c1fb9ac98f (patch)
tree0ab210777ff616e3f1b960aed9fa86b60790f4fb /sys/amd64/amd64/initcpu.c
parent7ebebd69707a9b23428aa7bfe2bba66d2a8eb016 (diff)
downloadFreeBSD-src-5ccbb1e22b45c1c388123f3802ea88c1fb9ac98f.zip
FreeBSD-src-5ccbb1e22b45c1c388123f3802ea88c1fb9ac98f.tar.gz
Move cpu_fxsr definition to C code (so debug info is generated) and where
it is easily #ifdef'ed so that we dont miss unintentional references to it.
Diffstat (limited to 'sys/amd64/amd64/initcpu.c')
-rw-r--r--sys/amd64/amd64/initcpu.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/amd64/amd64/initcpu.c b/sys/amd64/amd64/initcpu.c
index ba14116..eae6d32 100644
--- a/sys/amd64/amd64/initcpu.c
+++ b/sys/amd64/amd64/initcpu.c
@@ -70,6 +70,10 @@ SYSCTL_INT(_hw, OID_AUTO, instruction_sse, CTLFLAG_RD,
&hw_instruction_sse, 0,
"SIMD/MMX2 instructions available in CPU");
+#ifdef CPU_ENABLE_SSE
+u_int cpu_fxsr; /* SSE enabled */
+#endif
+
#ifdef I486_CPU
/*
* IBM Blue Lightning
OpenPOWER on IntegriCloud