[OpenBIOS] [PATCH v3 2/3] ppc64: Set up TOC pointer for of_client_interface()
Andreas Färber
andreas.faerber at web.de
Sun Dec 19 23:37:33 CET 2010
Signed-off-by: Andreas Färber <andreas.faerber at web.de>
---
arch/ppc/qemu/start.S | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/arch/ppc/qemu/start.S b/arch/ppc/qemu/start.S
index 088df1e..29cfc14 100644
--- a/arch/ppc/qemu/start.S
+++ b/arch/ppc/qemu/start.S
@@ -578,6 +578,10 @@ GLOBL(of_client_callback):
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 */
--
1.7.3.4
More information about the OpenBIOS
mailing list