[OpenBIOS] [PATCH v2 01/10] ppc: Use symbolic OpenBIOS origin address
Andreas Färber
andreas.faerber at web.de
Mon Oct 11 14:47:36 CEST 2010
This will simplify moving OpenBIOS around in memory.
Signed-off-by: Andreas Färber <andreas.faerber at web.de>
---
arch/ppc/qemu/ofmem.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/ppc/qemu/ofmem.c b/arch/ppc/qemu/ofmem.c
index b06cb7e..7d0959b 100644
--- a/arch/ppc/qemu/ofmem.c
+++ b/arch/ppc/qemu/ofmem.c
@@ -415,7 +415,7 @@ setup_mmu( unsigned long ramsize )
asm volatile("mtsrin %0,%1" :: "r" (sr_base + i), "r" (j) );
}
- memcpy((void *)get_rom_base(), (void *)0xfff00000, 0x00100000);
+ memcpy((void *)get_rom_base(), (void *)OF_CODE_START, 0x00100000);
/* Enable MMU */
--
1.7.3
More information about the OpenBIOS
mailing list