mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user