[OpenBIOS] [PATCH 3/6] ppc: Fix RAM top
Andreas Färber
andreas.faerber at web.de
Mon Oct 11 00:54:25 CEST 2010
The hash base is not get_rom_base() - HASH_SIZE. It gets rounded down,
depending on the PVR, so read its true value from SDR1.
According to the illustration in start.S, the stack is supposed to be 64 KiB.
Signed-off-by: Andreas Färber <andreas.faerber at web.de>
---
arch/ppc/qemu/ofmem.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/ppc/qemu/ofmem.c b/arch/ppc/qemu/ofmem.c
index 3ec25c3..500752b 100644
--- a/arch/ppc/qemu/ofmem.c
+++ b/arch/ppc/qemu/ofmem.c
@@ -86,7 +86,7 @@ get_rom_base( void )
unsigned long
get_ram_top( void )
{
- return get_rom_base() - HASH_SIZE - (32 + 32 + 64) * 1024;
+ return get_hash_base() - (32 + 64 + 64) * 1024;
}
unsigned long
--
1.7.3
More information about the OpenBIOS
mailing list