summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@coresystems.de>2010-05-14 09:56:46 +0000
committerStefan Reinauer <stepan@openbios.org>2010-05-14 09:56:46 +0000
commitaa567a795e54cb71e9862736d0af591958ac9775 (patch)
tree2aac274743713ac84903902ebea738c164a4f960 /src
parentdd6ad3447b10ffd1c0c823129aadc42038cb2b7e (diff)
downloadcoreboot-aa567a795e54cb71e9862736d0af591958ac9775.tar.xz
Fix warning. Hardware tested and didn't change behavior.
Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5546 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src')
-rw-r--r--src/northbridge/amd/gx2/chipsetinit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/northbridge/amd/gx2/chipsetinit.c b/src/northbridge/amd/gx2/chipsetinit.c
index f0b99e7e9d..1d0edc4c4d 100644
--- a/src/northbridge/amd/gx2/chipsetinit.c
+++ b/src/northbridge/amd/gx2/chipsetinit.c
@@ -268,7 +268,7 @@ ChipsetGeodeLinkInit(void)
if ((msr.lo&0xff) == 0x11)
return;
- totalmem = sizeram() << 20 - 1;
+ totalmem = (sizeram() << 20) - 1; // highest address
totalmem >>= 12;
totalmem = ~totalmem;
totalmem &= 0xfffff;