diff options
-rw-r--r-- | src/cpu/x86/mtrr/mtrr.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/cpu/x86/mtrr/mtrr.c b/src/cpu/x86/mtrr/mtrr.c index 86e31d0010..8826535528 100644 --- a/src/cpu/x86/mtrr/mtrr.c +++ b/src/cpu/x86/mtrr/mtrr.c @@ -778,17 +778,16 @@ int x86_mtrr_check(void) msr_t msr; printk(BIOS_DEBUG, "\nMTRR check\n"); - msr = rdmsr(0x2ff); - msr.lo >>= 10; + msr = rdmsr(MTRRdefType_MSR); printk(BIOS_DEBUG, "Fixed MTRRs : "); - if (msr.lo & 0x01) + if (msr.lo & MTRRdefTypeFixEn) printk(BIOS_DEBUG, "Enabled\n"); else printk(BIOS_DEBUG, "Disabled\n"); printk(BIOS_DEBUG, "Variable MTRRs: "); - if (msr.lo & 0x02) + if (msr.lo & MTRRdefTypeEn) printk(BIOS_DEBUG, "Enabled\n"); else printk(BIOS_DEBUG, "Disabled\n"); |