summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordas <das@FreeBSD.org>2008-02-02 23:17:27 +0000
committerdas <das@FreeBSD.org>2008-02-02 23:17:27 +0000
commite0a189d4ba97f2026cb819a10b4cdb6f9dfc6ae7 (patch)
tree1b8c2e050bf0bb419d2ca39ef8eab8258f76aebe
parenteca0289cd9f1df13941515c23b72023620c6abc8 (diff)
downloadFreeBSD-src-e0a189d4ba97f2026cb819a10b4cdb6f9dfc6ae7.zip
FreeBSD-src-e0a189d4ba97f2026cb819a10b4cdb6f9dfc6ae7.tar.gz
Add a few more CPUID feature bits while here. We don't support these
features yet.
-rw-r--r--sys/amd64/amd64/identcpu.c4
-rw-r--r--sys/amd64/include/specialreg.h2
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/amd64/amd64/identcpu.c b/sys/amd64/amd64/identcpu.c
index 6aa3052..a51f02e 100644
--- a/sys/amd64/amd64/identcpu.c
+++ b/sys/amd64/amd64/identcpu.c
@@ -223,7 +223,7 @@ printcpuinfo(void)
"\020"
"\001SSE3" /* SSE3 */
"\002<b1>"
- "\003RSVD2" /* "Reserved" bit 2 */
+ "\003DTES64" /* 64-bit Debug Trace */
"\004MON" /* MONITOR/MWAIT Instructions */
"\005DS_CPL" /* CPL Qualified Debug Store */
"\006VMX" /* Virtual Machine Extensions */
@@ -242,7 +242,7 @@ printcpuinfo(void)
"\023DCA" /* Direct Cache Access */
"\024SSE4.1"
"\025SSE4.2"
- "\026<b21>"
+ "\026x2APIC" /* xAPIC Extensions */
"\027<b22>"
"\030POPCNT"
"\031<b24>"
diff --git a/sys/amd64/include/specialreg.h b/sys/amd64/include/specialreg.h
index 3fb1c53..5771796 100644
--- a/sys/amd64/include/specialreg.h
+++ b/sys/amd64/include/specialreg.h
@@ -113,6 +113,7 @@
#define CPUID_PBE 0x80000000
#define CPUID2_SSE3 0x00000001
+#define CPUID2_DTES64 0x00000004
#define CPUID2_MON 0x00000008
#define CPUID2_DS_CPL 0x00000010
#define CPUID2_VMX 0x00000020
@@ -127,6 +128,7 @@
#define CPUID2_DCA 0x00040000
#define CPUID2_SSE41 0x00080000
#define CPUID2_SSE42 0x00100000
+#define CPUID2_X2APIC 0x00200000
#define CPUID2_POPCNT 0x00800000
/*
OpenPOWER on IntegriCloud