From e1dd5e96c83dee11d0dbd6c5b7ab2a3651d9f7ec Mon Sep 17 00:00:00 2001 From: Ceri Coburn Date: Thu, 10 May 2007 22:46:17 +0000 Subject: Fixed a bug within the 440BX RAM size calculation. Since the DRB values on the 440BX are 8 MB units we need to shift left by 13 to get it into KB. Signed-off-by: Ceri Coburn Signed-off-by: Roger Zauner Signed-off-by: Uwe Hermann Acked-by: Uwe Hermann git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2655 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/northbridge/intel/i440bx/northbridge.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/northbridge/intel/i440bx/northbridge.c b/src/northbridge/intel/i440bx/northbridge.c index 3dbfe1bad7..3870de866f 100644 --- a/src/northbridge/intel/i440bx/northbridge.c +++ b/src/northbridge/intel/i440bx/northbridge.c @@ -112,7 +112,8 @@ static void pci_domain_set_resources(device_t dev) * the physical memory. The units are ticks of 8MB * i.e. 1 means 8MB. */ - tomk = ((unsigned long)pci_read_config8(mc_dev, DRB7)) << 15; + tomk = ((unsigned long)pci_read_config8(mc_dev, DRB7)) << 13; + printk_debug("Setting RAM size to %d MB\n", tomk >> 10); /* Compute the top of Low memory */ tolmk = pci_tolm >> 10; if (tolmk >= tomk) { -- cgit v1.2.3