summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include/specialreg.h
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2009-04-29 06:54:40 +0000
committerjeff <jeff@FreeBSD.org>2009-04-29 06:54:40 +0000
commit9339d50dc35bdb129d86128c4da58bb4b58959fb (patch)
treef7e33f7dc0c826db0e48cbe026fe789a938ff2b6 /sys/amd64/include/specialreg.h
parentfe5d856f4750bf04beeac55f39f9edf161dba53f (diff)
downloadFreeBSD-src-9339d50dc35bdb129d86128c4da58bb4b58959fb.zip
FreeBSD-src-9339d50dc35bdb129d86128c4da58bb4b58959fb.tar.gz
- Add support for cpuid leaf 0xb. This allows us to determine the
topology of nehalem/corei7 based systems. - Remove the cpu_cores/cpu_logical detection from identcpu. - Describe the layout of the system in cpu_mp_announce(). Sponsored by: Nokia
Diffstat (limited to 'sys/amd64/include/specialreg.h')
-rw-r--r--sys/amd64/include/specialreg.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/amd64/include/specialreg.h b/sys/amd64/include/specialreg.h
index eb2ff9b..afc6580 100644
--- a/sys/amd64/include/specialreg.h
+++ b/sys/amd64/include/specialreg.h
@@ -183,6 +183,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
*/
OpenPOWER on IntegriCloud