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>

git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@902 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
Andreas Färber
2010-10-16 17:35:56 +00:00
committed by Blue Swirl
parent 6f834ad03b
commit ca9e9b0230

View File

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