diff options
author | Jung-uk Kim <jkim@FreeBSD.org> | 2011-04-12 22:12:23 +0000 |
---|---|---|
committer | Jung-uk Kim <jkim@FreeBSD.org> | 2011-04-12 22:12:23 +0000 |
commit | 373117495457537763d4868ac2e7ecdec1b5c876 (patch) | |
tree | 197b45ec334e284c66f6b850f4326459fb9ed042 | |
parent | a4e4127f420352b211c3dfa8d16edf695bae7a51 (diff) | |
download | src-373117495457537763d4868ac2e7ecdec1b5c876.tar.gz src-373117495457537763d4868ac2e7ecdec1b5c876.zip |
Add definitions for CPUID instruction 6, ECX information.
Notes
Notes:
svn path=/head/; revision=220578
-rw-r--r-- | sys/amd64/include/specialreg.h | 6 | ||||
-rw-r--r-- | sys/i386/include/specialreg.h | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/sys/amd64/include/specialreg.h b/sys/amd64/include/specialreg.h index 49513d93f2f1..22ae08ced83c 100644 --- a/sys/amd64/include/specialreg.h +++ b/sys/amd64/include/specialreg.h @@ -196,6 +196,12 @@ #define CPUID_HTT_CORES 0x00ff0000 #define CPUID_LOCAL_APIC_ID 0xff000000 +/* + * CPUID instruction 6 ecx info + */ +#define CPUID_PERF_STAT 0x00000001 +#define CPUID_PERF_BIAS 0x00000008 + /* * CPUID instruction 0xb ebx info. */ diff --git a/sys/i386/include/specialreg.h b/sys/i386/include/specialreg.h index 73e7a8454bed..2cd1f8f496d3 100644 --- a/sys/i386/include/specialreg.h +++ b/sys/i386/include/specialreg.h @@ -195,6 +195,12 @@ #define CPUID_HTT_CORES 0x00ff0000 #define CPUID_LOCAL_APIC_ID 0xff000000 +/* + * CPUID instruction 6 ecx info + */ +#define CPUID_PERF_STAT 0x00000001 +#define CPUID_PERF_BIAS 0x00000008 + /* * CPUID instruction 0xb ebx info. */ |