Skip to content

Commit f6346c6

Browse files
[NTOS:KE] Fix X86_FEATURE_MTTR typo (reactos#8330)
"MTTR" should read: "MTRR".
1 parent 0f4e223 commit f6346c6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

ntoskrnl/include/internal/amd64/ke.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ extern "C" {
3535
#define X86_FEATURE_PAE 0x00000040 /* physical address extension is present */
3636
#define X86_FEATURE_CX8 0x00000100 /* CMPXCHG8B instruction present */
3737
#define X86_FEATURE_SYSCALL 0x00000800 /* SYSCALL/SYSRET support present */
38-
#define X86_FEATURE_MTTR 0x00001000 /* Memory type range registers are present */
38+
#define X86_FEATURE_MTRR 0x00001000 /* Memory type range registers are present */
3939
#define X86_FEATURE_PGE 0x00002000 /* Page Global Enable */
4040
#define X86_FEATURE_CMOV 0x00008000 /* "Conditional move" instruction supported */
4141
#define X86_FEATURE_PAT 0x00010000 /* Page Attribute Table is supported */

ntoskrnl/include/internal/i386/ke.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ extern "C"
4040
#define X86_FEATURE_CX8 0x00000100 /* CMPXCHG8B instruction present */
4141
#define X86_FEATURE_APIC 0x00000200 /* APIC is present */
4242
#define X86_FEATURE_SYSCALL 0x00000800 /* SYSCALL/SYSRET support present */
43-
#define X86_FEATURE_MTTR 0x00001000 /* Memory type range registers are present */
43+
#define X86_FEATURE_MTRR 0x00001000 /* Memory type range registers are present */
4444
#define X86_FEATURE_PGE 0x00002000 /* Page Global Enable */
4545
#define X86_FEATURE_CMOV 0x00008000 /* "Conditional move" instruction supported */
4646
#define X86_FEATURE_PAT 0x00010000 /* Page Attribute Table is supported */

ntoskrnl/ke/i386/cpu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ KiGetFeatureBits(VOID)
378378
if (CpuFeatures & X86_FEATURE_TSC) FeatureBits |= KF_RDTSC;
379379
if (CpuFeatures & X86_FEATURE_CX8) FeatureBits |= KF_CMPXCHG8B;
380380
if (CpuFeatures & X86_FEATURE_SYSCALL) FeatureBits |= KF_FAST_SYSCALL;
381-
if (CpuFeatures & X86_FEATURE_MTTR) FeatureBits |= KF_MTRR;
381+
if (CpuFeatures & X86_FEATURE_MTRR) FeatureBits |= KF_MTRR;
382382
if (CpuFeatures & X86_FEATURE_PGE) FeatureBits |= KF_GLOBAL_PAGE | KF_CR4;
383383
if (CpuFeatures & X86_FEATURE_CMOV) FeatureBits |= KF_CMOV;
384384
if (CpuFeatures & X86_FEATURE_PAT) FeatureBits |= KF_PAT;

0 commit comments

Comments
 (0)