Author: afaerber Date: Fri Dec 24 23:36:33 2010 New Revision: 988 URL: http://tracker.coreboot.org/trac/openbios/changeset/988
Log: ppc64: Set up TOC pointer for of_client_interface()
Avoids 'unpredictable' memory accesses there.
Signed-off-by: Andreas Färber andreas.faerber@web.de
Modified: trunk/openbios-devel/arch/ppc/qemu/start.S
Modified: trunk/openbios-devel/arch/ppc/qemu/start.S ============================================================================== --- trunk/openbios-devel/arch/ppc/qemu/start.S Fri Dec 24 23:33:34 2010 (r987) +++ trunk/openbios-devel/arch/ppc/qemu/start.S Fri Dec 24 23:36:33 2010 (r988) @@ -578,6 +578,10 @@ PPC_STL r30, (STKOFF + 31 * ULONG_SIZE)(r1) PPC_STL r31, (STKOFF + 32 * ULONG_SIZE)(r1)
+#ifdef CONFIG_PPC64 + LOAD_REG_IMMEDIATE(r2, of_client_interface) + ld r2, 8(r2) +#endif bl BRANCH_LABEL(of_client_interface)
/* restore r5 - r31 */