Author: stepan Date: Fri May 14 11:56:46 2010 New Revision: 5546 URL: https://tracker.coreboot.org/trac/coreboot/changeset/5546
Log: Fix warning. Hardware tested and didn't change behavior.
Signed-off-by: Stefan Reinauer stepan@coresystems.de Acked-by: Stefan Reinauer stepan@coresystems.de
Modified: trunk/src/northbridge/amd/gx2/chipsetinit.c
Modified: trunk/src/northbridge/amd/gx2/chipsetinit.c ============================================================================== --- trunk/src/northbridge/amd/gx2/chipsetinit.c Fri May 14 11:48:05 2010 (r5545) +++ trunk/src/northbridge/amd/gx2/chipsetinit.c Fri May 14 11:56:46 2010 (r5546) @@ -268,7 +268,7 @@ if ((msr.lo&0xff) == 0x11) return;
- totalmem = sizeram() << 20 - 1; + totalmem = (sizeram() << 20) - 1; // highest address totalmem >>= 12; totalmem = ~totalmem; totalmem &= 0xfffff;