diff options
author | jkim <jkim@FreeBSD.org> | 2005-10-14 22:52:01 +0000 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2005-10-14 22:52:01 +0000 |
commit | 0dd10470eca4b50758f1f3fa559697f67bd0a188 (patch) | |
tree | a8764706a4db8c765f1763d02dbb2688b1955119 /sys/amd64/include/specialreg.h | |
parent | 10f007ca7dcc58198c5b122a663950ba305936d2 (diff) | |
download | FreeBSD-src-0dd10470eca4b50758f1f3fa559697f67bd0a188.zip FreeBSD-src-0dd10470eca4b50758f1f3fa559697f67bd0a188.tar.gz |
- Print number of physical/logical cores and more CPUID info.
- Add newer CPUID definitions for future use.
Many thanks to Mike Tancsa <mike at sentex dot net> for providing test
cases for Intel Pentium D and AMD Athlon 64 X2.
Approved by: anholt (mentor)
Diffstat (limited to 'sys/amd64/include/specialreg.h')
-rw-r--r-- | sys/amd64/include/specialreg.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sys/amd64/include/specialreg.h b/sys/amd64/include/specialreg.h index 37f2328..b3f8209 100644 --- a/sys/amd64/include/specialreg.h +++ b/sys/amd64/include/specialreg.h @@ -126,7 +126,16 @@ #define AMDID_SYSCALL 0x00000800 #define AMDID_MP 0x00080000 #define AMDID_NX 0x00100000 +#define AMDID_EXT_MMX 0x00400000 +#define AMDID_FFXSR 0x01000000 +#define AMDID_RDTSCP 0x08000000 #define AMDID_LM 0x20000000 +#define AMDID_EXT_3DNOW 0x40000000 +#define AMDID_3DNOW 0x80000000 + +#define AMDID2_LAHF 0x00000001 +#define AMDID2_CMP 0x00000002 +#define AMDID2_CR8 0x00000010 /* * CPUID instruction 1 ebx info @@ -137,6 +146,11 @@ #define CPUID_LOCAL_APIC_ID 0xff000000 /* + * AMD extended function 8000_0008h ecx info + */ +#define AMDID_CMP_CORES 0x000000ff + +/* * Model-specific registers for the i386 family */ #define MSR_P5_MC_ADDR 0x000 |