Author: laurent
Date: 2009-11-02 00:27:35 +0100 (Mon, 02 Nov 2009)
New Revision: 591
Modified:
trunk/openbios-devel/arch/ppc/qemu/ofmem.c
Log:
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(a)vivier.eu>
Modified: trunk/openbios-devel/arch/ppc/qemu/ofmem.c
===================================================================
--- trunk/openbios-devel/arch/ppc/qemu/ofmem.c 2009-10-19 23:02:10 UTC (rev 590)
+++ trunk/openbios-devel/arch/ppc/qemu/ofmem.c 2009-11-01 23:27:35 UTC (rev 591)
@@ -401,8 +401,6 @@
{
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);
}