diff options
author | kib <kib@FreeBSD.org> | 2010-05-05 21:07:47 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2010-05-05 21:07:47 +0000 |
commit | 9e7ca00a7d2a09aaf3de24d5ccf18e1a4d305e75 (patch) | |
tree | ce2bce52f5ebbf8a00878f8e3af7cd29d81c6e06 /sys/i386 | |
parent | c8dfd5c0cb853b1ac3f30e4c150522cd84121361 (diff) | |
download | FreeBSD-src-9e7ca00a7d2a09aaf3de24d5ccf18e1a4d305e75.zip FreeBSD-src-9e7ca00a7d2a09aaf3de24d5ccf18e1a4d305e75.tar.gz |
Add definitions for Intel AESNI CPUID bits and print the capabilities
on boot.
Hardware provided by: Sentex Communications
MFC after: 1 week
Diffstat (limited to 'sys/i386')
-rw-r--r-- | sys/i386/i386/identcpu.c | 4 | ||||
-rw-r--r-- | sys/i386/include/specialreg.h | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/i386/i386/identcpu.c b/sys/i386/i386/identcpu.c index 931bfaf..6f2e4a4 100644 --- a/sys/i386/i386/identcpu.c +++ b/sys/i386/i386/identcpu.c @@ -727,7 +727,7 @@ printcpuinfo(void) printf("\n Features2=0x%b", cpu_feature2, "\020" "\001SSE3" /* SSE3 */ - "\002<b1>" + "\002PCLMULQDQ" /* Carry-Less Mul Quadword */ "\003DTES64" /* 64-bit Debug Trace */ "\004MON" /* MONITOR/MWAIT Instructions */ "\005DS_CPL" /* CPL Qualified Debug Store */ @@ -751,7 +751,7 @@ printcpuinfo(void) "\027MOVBE" "\030POPCNT" "\031<b24>" - "\032<b25>" + "\032AESNI" /* AES Crypto*/ "\033XSAVE" "\034OSXSAVE" "\035<b28>" diff --git a/sys/i386/include/specialreg.h b/sys/i386/include/specialreg.h index d2494c7..efcf924 100644 --- a/sys/i386/include/specialreg.h +++ b/sys/i386/include/specialreg.h @@ -110,6 +110,7 @@ #define CPUID_PBE 0x80000000 #define CPUID2_SSE3 0x00000001 +#define CPUID2_PCLMULQDQ 0x00000002 #define CPUID2_DTES64 0x00000004 #define CPUID2_MON 0x00000008 #define CPUID2_DS_CPL 0x00000010 @@ -128,6 +129,7 @@ #define CPUID2_X2APIC 0x00200000 #define CPUID2_MOVBE 0x00400000 #define CPUID2_POPCNT 0x00800000 +#define CPUID2_AESNI 0x02000000 /* * Important bits in the AMD extended cpuid flags |