From ed1de5d327daeb9de81ebf156b0479cf3e03c8d4 Mon Sep 17 00:00:00 2001 From: Stanislav Shwartsman Date: Fri, 11 Dec 2009 07:44:48 +0000 Subject: [PATCH] Commit "fix for BIOS bug" changed MSR_MTRRdefType to MTRR_MEMTYPE_UC. Change it back to MTRR_MEMTYPE_WB. --- bochs/bios/rombios32.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bochs/bios/rombios32.c b/bochs/bios/rombios32.c index 99d73a546..9658634df 100644 --- a/bochs/bios/rombios32.c +++ b/bochs/bios/rombios32.c @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////// -// $Id: rombios32.c,v 1.53 2009-10-25 10:24:46 vruppert Exp $ +// $Id: rombios32.c,v 1.54 2009-12-11 07:44:48 sshwarts Exp $ ///////////////////////////////////////////////////////////////////////// // // 32 bit Bochs BIOS init code @@ -581,7 +581,7 @@ void setup_mtrr(void) wrmsr_smp(MTRRphysBase_MSR(0), 0xe0000000 | MTRR_MEMTYPE_UC); /* Make sure no reserved bit set to '1 in MTRRphysMask_MSR */ wrmsr_smp(MTRRphysMask_MSR(0), (uint32_t)(~(0x20000000 - 1)) | 0x800); - wrmsr_smp(MSR_MTRRdefType, 0xc00 | MTRR_MEMTYPE_UC); + wrmsr_smp(MSR_MTRRdefType, 0xc00 | MTRR_MEMTYPE_WB); } void ram_probe(void)