summaryrefslogtreecommitdiffstats
path: root/sys/amd64/amd64/initcpu.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2001-09-04 11:05:33 +0000
committerpeter <peter@FreeBSD.org>2001-09-04 11:05:33 +0000
commitbea02ebe6c904286c7a4b2943eeb394bb6687ffd (patch)
tree3d87e0e032f89b14405c4102e9026634bcaaffe6 /sys/amd64/amd64/initcpu.c
parent12a18cf7f130bb748f14d459d2713d2fd4ce2df9 (diff)
downloadFreeBSD-src-bea02ebe6c904286c7a4b2943eeb394bb6687ffd.zip
FreeBSD-src-bea02ebe6c904286c7a4b2943eeb394bb6687ffd.tar.gz
Mostly cosmetic. Move various variables from .s files to .c files so that
gdb generates debug info for them.
Diffstat (limited to 'sys/amd64/amd64/initcpu.c')
-rw-r--r--sys/amd64/amd64/initcpu.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/amd64/amd64/initcpu.c b/sys/amd64/amd64/initcpu.c
index eae6d32..b32c786 100644
--- a/sys/amd64/amd64/initcpu.c
+++ b/sys/amd64/amd64/initcpu.c
@@ -70,9 +70,15 @@ SYSCTL_INT(_hw, OID_AUTO, instruction_sse, CTLFLAG_RD,
&hw_instruction_sse, 0,
"SIMD/MMX2 instructions available in CPU");
+/* Must *NOT* be BSS or locore will bzero these after setting them */
+int cpu = 0; /* Are we 386, 386sx, 486, etc? */
+u_int cpu_id = 0; /* Stepping ID */
+u_int cpu_feature = 0; /* Feature flags */
+u_int cpu_high = 0; /* Highest arg to CPUID */
#ifdef CPU_ENABLE_SSE
-u_int cpu_fxsr; /* SSE enabled */
+u_int cpu_fxsr = 0; /* SSE enabled */
#endif
+char cpu_vendor[20] = ""; /* CPU Origin code */
#ifdef I486_CPU
/*
OpenPOWER on IntegriCloud