[OpenBIOS] [PATCH v2 04/10] ppc: Fix RAM top (2/2)

Andreas Färber andreas.faerber at web.de
Mon Oct 11 14:47:39 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.

v2:
* Split up.

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 f181c77..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 + 64 + 64) * 1024;
+	return get_hash_base() - (32 + 64 + 64) * 1024;
 }
 
 unsigned long
-- 
1.7.3




More information about the OpenBIOS mailing list