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>



git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2655 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Ceri Coburn 2007-05-10 22:46:17 +00:00 committed by Uwe Hermann
parent 00dc8595a6
commit e1dd5e96c8
1 changed files with 2 additions and 1 deletions

View File

@ -112,7 +112,8 @@ static void pci_domain_set_resources(device_t dev)
* the physical memory. The units are ticks of 8MB * the physical memory. The units are ticks of 8MB
* i.e. 1 means 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 */ /* Compute the top of Low memory */
tolmk = pci_tolm >> 10; tolmk = pci_tolm >> 10;
if (tolmk >= tomk) { if (tolmk >= tomk) {