From f6346c6228754e8d659a13c16dfa2f3916ffada1 Mon Sep 17 00:00:00 2001 From: Serge Gautherie <32623169+SergeGautherie@users.noreply.github.com> Date: Wed, 13 Aug 2025 12:25:43 +0200 Subject: [PATCH] [NTOS:KE] Fix X86_FEATURE_MTTR typo (#8330) "MTTR" should read: "MTRR". --- ntoskrnl/include/internal/amd64/ke.h | 2 +- ntoskrnl/include/internal/i386/ke.h | 2 +- ntoskrnl/ke/i386/cpu.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ntoskrnl/include/internal/amd64/ke.h b/ntoskrnl/include/internal/amd64/ke.h index f9af4818b54..cfc69fe1d41 100644 --- a/ntoskrnl/include/internal/amd64/ke.h +++ b/ntoskrnl/include/internal/amd64/ke.h @@ -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 */ diff --git a/ntoskrnl/include/internal/i386/ke.h b/ntoskrnl/include/internal/i386/ke.h index 3d4675b30d8..dacc0a816d7 100644 --- a/ntoskrnl/include/internal/i386/ke.h +++ b/ntoskrnl/include/internal/i386/ke.h @@ -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 */ diff --git a/ntoskrnl/ke/i386/cpu.c b/ntoskrnl/ke/i386/cpu.c index b54a94d13c2..6083f42e1f1 100644 --- a/ntoskrnl/ke/i386/cpu.c +++ b/ntoskrnl/ke/i386/cpu.c @@ -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;