- Update cpufixup so we support more than 4GB of memory

git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1063 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Eric Biederman 2003-08-01 03:01:28 +00:00
parent 8aeb2a4dbf
commit a265d5c0a0
1 changed files with 3 additions and 3 deletions

View File

@ -36,7 +36,7 @@ void k8_cpufixup(struct mem_range *mem)
/* Setup TOP_MEM2 */
msr.hi = tomk >> 22;
msr.lo = tomk << 12;
msr.lo = tomk << 10;
wrmsr(TOP_MEM2, msr);
/* zero the IORR's before we enable to prevent
@ -47,7 +47,7 @@ void k8_cpufixup(struct mem_range *mem)
wrmsr(i, msr);
}
msr = rdmsr(SYSCFG);
msr = rdmsr(SYSCFG_MSR);
msr.lo |= SYSCFG_MSR_MtrrVarDramEn | SYSCFG_MSR_TOM2En;
wrmsr(SYSCFG, msr);
wrmsr(SYSCFG_MSR, msr);
}