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@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