Author: uwe Date: 2007-05-11 00:46:17 +0200 (Fri, 11 May 2007) New Revision: 2655
Modified: trunk/LinuxBIOSv2/src/northbridge/intel/i440bx/northbridge.c Log: 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 ceri.coburn@gmail.com Signed-off-by: Roger Zauner roger@eskimo.com Signed-off-by: Uwe Hermann uwe@hermann-uwe.de Acked-by: Uwe Hermann uwe@hermann-uwe.de
Modified: trunk/LinuxBIOSv2/src/northbridge/intel/i440bx/northbridge.c =================================================================== --- trunk/LinuxBIOSv2/src/northbridge/intel/i440bx/northbridge.c 2007-05-10 22:21:13 UTC (rev 2654) +++ trunk/LinuxBIOSv2/src/northbridge/intel/i440bx/northbridge.c 2007-05-10 22:46:17 UTC (rev 2655) @@ -112,7 +112,8 @@ * 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) {