[NTOS:KE] Fix X86_FEATURE_MTTR typo (#8330)

"MTTR" should read: "MTRR".
This commit is contained in:
Serge Gautherie
2025-08-13 12:25:43 +02:00
committed by GitHub
parent 0f4e223ce7
commit f6346c6228
3 changed files with 3 additions and 3 deletions

View File

@@ -35,7 +35,7 @@ extern "C" {
#define X86_FEATURE_PAE 0x00000040 /* physical address extension is present */
#define X86_FEATURE_CX8 0x00000100 /* CMPXCHG8B instruction present */
#define X86_FEATURE_SYSCALL 0x00000800 /* SYSCALL/SYSRET support present */
#define X86_FEATURE_MTTR 0x00001000 /* Memory type range registers are present */
#define X86_FEATURE_MTRR 0x00001000 /* Memory type range registers are present */
#define X86_FEATURE_PGE 0x00002000 /* Page Global Enable */
#define X86_FEATURE_CMOV 0x00008000 /* "Conditional move" instruction supported */
#define X86_FEATURE_PAT 0x00010000 /* Page Attribute Table is supported */

View File

@@ -40,7 +40,7 @@ extern "C"
#define X86_FEATURE_CX8 0x00000100 /* CMPXCHG8B instruction present */
#define X86_FEATURE_APIC 0x00000200 /* APIC is present */
#define X86_FEATURE_SYSCALL 0x00000800 /* SYSCALL/SYSRET support present */
#define X86_FEATURE_MTTR 0x00001000 /* Memory type range registers are present */
#define X86_FEATURE_MTRR 0x00001000 /* Memory type range registers are present */
#define X86_FEATURE_PGE 0x00002000 /* Page Global Enable */
#define X86_FEATURE_CMOV 0x00008000 /* "Conditional move" instruction supported */
#define X86_FEATURE_PAT 0x00010000 /* Page Attribute Table is supported */

View File

@@ -378,7 +378,7 @@ KiGetFeatureBits(VOID)
if (CpuFeatures & X86_FEATURE_TSC) FeatureBits |= KF_RDTSC;
if (CpuFeatures & X86_FEATURE_CX8) FeatureBits |= KF_CMPXCHG8B;
if (CpuFeatures & X86_FEATURE_SYSCALL) FeatureBits |= KF_FAST_SYSCALL;
if (CpuFeatures & X86_FEATURE_MTTR) FeatureBits |= KF_MTRR;
if (CpuFeatures & X86_FEATURE_MTRR) FeatureBits |= KF_MTRR;
if (CpuFeatures & X86_FEATURE_PGE) FeatureBits |= KF_GLOBAL_PAGE | KF_CR4;
if (CpuFeatures & X86_FEATURE_CMOV) FeatureBits |= KF_CMOV;
if (CpuFeatures & X86_FEATURE_PAT) FeatureBits |= KF_PAT;