aboutsummaryrefslogtreecommitdiff
path: root/sys/i386/include
diff options
context:
space:
mode:
authorJeff Roberson <jeff@FreeBSD.org>2009-04-29 06:54:40 +0000
committerJeff Roberson <jeff@FreeBSD.org>2009-04-29 06:54:40 +0000
commit82fcb0f1927155bea9b2e90e86173cee61bc5b2c (patch)
treef7e33f7dc0c826db0e48cbe026fe789a938ff2b6 /sys/i386/include
parent113dda8a7c936995d64456bb2783bc56e0687281 (diff)
Notes
Diffstat (limited to 'sys/i386/include')
-rw-r--r--sys/i386/include/smp.h4
-rw-r--r--sys/i386/include/specialreg.h7
2 files changed, 7 insertions, 4 deletions
diff --git a/sys/i386/include/smp.h b/sys/i386/include/smp.h
index ef3cbbbe1dc9..33739ccf7c93 100644
--- a/sys/i386/include/smp.h
+++ b/sys/i386/include/smp.h
@@ -45,10 +45,6 @@ extern u_long *ipi_rendezvous_counts[MAXCPU];
extern u_long *ipi_lazypmap_counts[MAXCPU];
#endif
-/* global data in identcpu.c */
-extern int cpu_cores;
-extern int cpu_logical;
-
/* IPI handlers */
inthand_t
IDTVEC(invltlb), /* TLB shootdowns - global */
diff --git a/sys/i386/include/specialreg.h b/sys/i386/include/specialreg.h
index c3cbec72abd4..fa9cf8143bef 100644
--- a/sys/i386/include/specialreg.h
+++ b/sys/i386/include/specialreg.h
@@ -182,6 +182,13 @@
#define CPUID_HTT_CORES 0x00ff0000
#define CPUID_LOCAL_APIC_ID 0xff000000
+/*
+ * CPUID instruction 0xb ebx info.
+ */
+#define CPUID_TYPE_INVAL 0
+#define CPUID_TYPE_SMT 1
+#define CPUID_TYPE_CORE 2
+
/*
* AMD extended function 8000_0007h edx info
*/