j
: Next unread message k
: Previous unread message j a
: Jump to all threads
j l
: Jump to MailingList overview
Author: blueswirl Date: Sat Oct 16 19:35:56 2010 New Revision: 902 URL: http://tracker.coreboot.org/trac/openbios/changeset/902
Log: ppc: Fix RAM top (2/2)
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 Signed-off-by: Blue Swirl blauwirbel@gmail.com
Modified: trunk/openbios-devel/arch/ppc/qemu/ofmem.c
Modified: trunk/openbios-devel/arch/ppc/qemu/ofmem.c ============================================================================== --- trunk/openbios-devel/arch/ppc/qemu/ofmem.c Sat Oct 16 19:35:53 2010 (r901) +++ trunk/openbios-devel/arch/ppc/qemu/ofmem.c Sat Oct 16 19:35:56 2010 (r902) @@ -86,7 +86,7 @@ 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