mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-23 21:54:27 +02:00
OvmfPkg/Sec: use cache type #defines from ArchitecturalMsr.h
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
71e6cc8dad
commit
78bccfec9c
@ -69,7 +69,7 @@ SecMtrrSetup (
|
|||||||
}
|
}
|
||||||
|
|
||||||
DefType.Uint64 = AsmReadMsr64 (MSR_IA32_MTRR_DEF_TYPE);
|
DefType.Uint64 = AsmReadMsr64 (MSR_IA32_MTRR_DEF_TYPE);
|
||||||
DefType.Bits.Type = 6; /* write back */
|
DefType.Bits.Type = MSR_IA32_MTRR_CACHE_WRITE_BACK;
|
||||||
DefType.Bits.E = 1; /* enable */
|
DefType.Bits.E = 1; /* enable */
|
||||||
AsmWriteMsr64 (MSR_IA32_MTRR_DEF_TYPE, DefType.Uint64);
|
AsmWriteMsr64 (MSR_IA32_MTRR_DEF_TYPE, DefType.Uint64);
|
||||||
}
|
}
|
||||||
|
@ -765,7 +765,7 @@ SecMtrrSetup (
|
|||||||
}
|
}
|
||||||
|
|
||||||
DefType.Uint64 = AsmReadMsr64 (MSR_IA32_MTRR_DEF_TYPE);
|
DefType.Uint64 = AsmReadMsr64 (MSR_IA32_MTRR_DEF_TYPE);
|
||||||
DefType.Bits.Type = 6; /* write back */
|
DefType.Bits.Type = MSR_IA32_MTRR_CACHE_WRITE_BACK;
|
||||||
DefType.Bits.E = 1; /* enable */
|
DefType.Bits.E = 1; /* enable */
|
||||||
AsmWriteMsr64 (MSR_IA32_MTRR_DEF_TYPE, DefType.Uint64);
|
AsmWriteMsr64 (MSR_IA32_MTRR_DEF_TYPE, DefType.Uint64);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user