mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
MFC r207676:
Add definitions for Intel AESNI CPUID bits and print the capabilities on boot.
This commit is contained in:
parent
c3a3cc87e6
commit
eb77a08756
4 changed files with 8 additions and 4 deletions
|
|
@ -240,7 +240,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 */
|
||||
|
|
@ -264,7 +264,7 @@ printcpuinfo(void)
|
|||
"\027MOVBE"
|
||||
"\030POPCNT"
|
||||
"\031<b24>"
|
||||
"\032<b25>"
|
||||
"\032AESNI" /* AES Crypto*/
|
||||
"\033XSAVE"
|
||||
"\034OSXSAVE"
|
||||
"\035<b28>"
|
||||
|
|
|
|||
|
|
@ -113,6 +113,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
|
||||
|
|
@ -131,6 +132,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
|
||||
|
|
|
|||
|
|
@ -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>"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue