Author: blueswirl Date: Sat Oct 16 19:35:49 2010 New Revision: 899 URL: http://tracker.coreboot.org/trac/openbios/changeset/899
Log: ppc: Use symbolic OpenBIOS origin address
This will simplify moving OpenBIOS around in memory.
Signed-off-by: Andreas Färber andreas.faerber@web.de Signed-off-by: Blue Swirl blauwirbel@gmail.com
Modified: trunk/openbios-devel/arch/ppc/qemu/ofmem.c
Modified: trunk/openbios-devel/arch/ppc/qemu/ofmem.c ============================================================================== --- trunk/openbios-devel/arch/ppc/qemu/ofmem.c Sat Oct 16 17:09:18 2010 (r898) +++ trunk/openbios-devel/arch/ppc/qemu/ofmem.c Sat Oct 16 19:35:49 2010 (r899) @@ -415,7 +415,7 @@ 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 */