[OpenBIOS] [PATCH 3/4] ppc64: Set up TOC pointer for of_client_interface()

Andreas Färber andreas.faerber at web.de
Wed Dec 15 01:11:01 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 1a3548f..7846463 100644
--- a/arch/ppc/qemu/start.S
+++ b/arch/ppc/qemu/start.S
@@ -582,6 +582,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




More information about the OpenBIOS mailing list