kernel/x86: add definitions for cpuid leaves

remove feature_5_ecx

Change-Id: I247a37c875e5dd04f2239fdceeef67e402b1245d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8880
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
This commit is contained in:
Jérôme Duval
2025-02-04 17:22:34 +00:00
committed by waddlesplash
parent af5f256338
commit 6c380f3c8e
3 changed files with 30 additions and 25 deletions
+6 -5
View File
@@ -188,6 +188,12 @@
#define IA32_MSR_PAT_TYPE_WRITE_BACK 0x6ULL
#define IA32_MSR_PAT_TYPE_UNCACHED 0x7ULL
// cpuid leaves
#define IA32_CPUID_LEAF_MWAIT 0x5
#define IA32_CPUID_LEAF_XSTATE 0xd
#define IA32_CPUID_LEAF_TSC 0x15
#define IA32_CPUID_LEAF_FREQUENCY 0x16
// x86 features from cpuid eax 1, edx register
// reference http://www.intel.com/Assets/en_US/PDF/appnote/241618.pdf (Table 5-5)
#define IA32_FEATURE_FPU (1 << 0) // x87 fpu
@@ -282,10 +288,6 @@
| IA32_FEATURE_AMD_EXT_RDTSCP \
| IA32_FEATURE_AMD_EXT_LONG)
// x86 defined features from cpuid eax 5, ecx register
#define IA32_FEATURE_POWER_MWAIT (1 << 0)
#define IA32_FEATURE_INTERRUPT_MWAIT (1 << 1)
// x86 defined features from cpuid eax 6, eax register
// reference https://software.intel.com/content/dam/develop/public/us/en/documents/253666-sdm-vol-2a.pdf (Table 3-8)
#define IA32_FEATURE_DTS (1 << 0) // Digital Thermal Sensor
@@ -514,7 +516,6 @@ enum x86_feature_type {
FEATURE_EXT, // cpuid eax=1, ecx register
FEATURE_EXT_AMD_ECX, // cpuid eax=0x80000001, ecx register (AMD)
FEATURE_EXT_AMD, // cpuid eax=0x80000001, edx register (AMD)
FEATURE_5_ECX, // cpuid eax=5, ecx register
FEATURE_6_EAX, // cpuid eax=6, eax registers
FEATURE_6_ECX, // cpuid eax=6, ecx registers
FEATURE_7_EBX, // cpuid eax=7, ebx registers