- 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:
parent
8aeb2a4dbf
commit
a265d5c0a0
|
@ -36,7 +36,7 @@ void k8_cpufixup(struct mem_range *mem)
|
||||||
|
|
||||||
/* Setup TOP_MEM2 */
|
/* Setup TOP_MEM2 */
|
||||||
msr.hi = tomk >> 22;
|
msr.hi = tomk >> 22;
|
||||||
msr.lo = tomk << 12;
|
msr.lo = tomk << 10;
|
||||||
wrmsr(TOP_MEM2, msr);
|
wrmsr(TOP_MEM2, msr);
|
||||||
|
|
||||||
/* zero the IORR's before we enable to prevent
|
/* zero the IORR's before we enable to prevent
|
||||||
|
@ -47,7 +47,7 @@ void k8_cpufixup(struct mem_range *mem)
|
||||||
wrmsr(i, msr);
|
wrmsr(i, msr);
|
||||||
}
|
}
|
||||||
|
|
||||||
msr = rdmsr(SYSCFG);
|
msr = rdmsr(SYSCFG_MSR);
|
||||||
msr.lo |= SYSCFG_MSR_MtrrVarDramEn | SYSCFG_MSR_TOM2En;
|
msr.lo |= SYSCFG_MSR_MtrrVarDramEn | SYSCFG_MSR_TOM2En;
|
||||||
wrmsr(SYSCFG, msr);
|
wrmsr(SYSCFG_MSR, msr);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue