Now that the VIA code is run above 1Meg (like other boards), it should
[coreboot.git] / src / cpu / x86 / mtrr / mtrr.c
index 734734a77bed585c91c998b19fdcd3a2b4a3d1e0..8e7beea76e77d310ee59e8924ed343e690d8a63e 100644 (file)
@@ -62,7 +62,7 @@ static void enable_var_mtrr(void)
        msr_t msr;
 
        msr = rdmsr(MTRRdefType_MSR);
-       msr.lo |= 0x800;
+       msr.lo |= MTRRdefTypeEn;
        wrmsr(MTRRdefType_MSR, msr);
 }
 
@@ -115,7 +115,7 @@ static void set_var_mtrr(
 
        /* Bit 32-35 of MTRRphysMask should be set to 1 */
        base.lo |= type;
-       mask.lo |= 0x800;
+       mask.lo |= MTRRphysMaskValid;
        wrmsr (MTRRphysBase_MSR(reg), base);
        wrmsr (MTRRphysMask_MSR(reg), mask);