ppc: replace ofmem_claim_phys() + ofmem_claim_virt() by ofmem_map().

This is needed by haiku-ppc bootloader (but it is not enough).

Signed-off-by: Laurent Vivier <Laurent@vivier.eu>



git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@591 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
Laurent Vivier
2009-11-01 23:27:35 +00:00
parent b9486926d9
commit e76492313a

View File

@@ -401,8 +401,6 @@ ofmem_init( void )
{
ofmem_t *ofmem = ofmem_arch_get_private();
ofmem_claim_phys( 0, get_ram_bottom(), 0 );
ofmem_claim_virt( 0, get_ram_bottom(), 0 );
ofmem_claim_phys( get_ram_top(), ofmem->ramsize - get_ram_top(), 0);
ofmem_claim_virt( get_ram_top(), ofmem->ramsize - get_ram_top(), 0);
ofmem_map( 0, 0, get_ram_bottom(), 0 );
ofmem_map( get_ram_top(), get_ram_top(), ofmem->ramsize - get_ram_top(), 0);
}