mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
We now use memory size reported in VIA northbridge registers
This commit is contained in:
parent
8239f21126
commit
ede94585e0
1 changed files with 4 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
|||
#include <printk.h>
|
||||
#include <pci.h>
|
||||
|
||||
unsigned long sizeram()
|
||||
|
@ -21,9 +22,12 @@ unsigned long sizeram()
|
|||
prevmem = mem;
|
||||
}
|
||||
|
||||
printk("sizeram: returning 0x%x KB\n", totalmem);
|
||||
#if 0
|
||||
printk("sizeram: NOT returning 0x%x KB\n", totalmem);
|
||||
printk("sizeram: there are still some SPD problems ... \n");
|
||||
totalmem = 64 * 1024;
|
||||
printk("sizeram: SO we return only 0x%x KB\n", totalmem);
|
||||
#endif
|
||||
return totalmem;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue