summaryrefslogtreecommitdiff
path: root/src/cpu
diff options
context:
space:
mode:
authorEric Biederman <ebiederm@xmission.com>2003-08-01 03:01:28 +0000
committerEric Biederman <ebiederm@xmission.com>2003-08-01 03:01:28 +0000
commita265d5c0a0449ade24b999635fecc253c612bee3 (patch)
treee318e232bf7ae6580a8e080caf9f7c37d525348c /src/cpu
parent8aeb2a4dbf06470ad7b514e73cafbab96e9b9bc8 (diff)
- 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
Diffstat (limited to 'src/cpu')
-rw-r--r--src/cpu/k8/cpufixup.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cpu/k8/cpufixup.c b/src/cpu/k8/cpufixup.c
index 573064071d..fa9c1d2a52 100644
--- a/src/cpu/k8/cpufixup.c
+++ b/src/cpu/k8/cpufixup.c
@@ -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);
}