Thread (79 messages) 79 messages, 3 authors, 2014-04-24
STALE4422d
Revisions (2)
  1. v1 current
  2. v2 [diff vs current]

[PATCH 14/18] powerpc/boot: modify how we enter kernel on 64bit

From: Cédric Le Goater <hidden>
Date: 2014-03-20 15:10:46
Subsystem: linux for powerpc (32-bit and 64-bit), the rest · Maintainers: Madhavan Srinivasan, Michael Ellerman, Linus Torvalds

Signed-off-by: Cédric Le Goater <redacted>
---
 arch/powerpc/boot/main.c |    4 ++++
 1 file changed, 4 insertions(+)
diff --git a/arch/powerpc/boot/main.c b/arch/powerpc/boot/main.c
index a28f02165e97..46a7464e13c2 100644
--- a/arch/powerpc/boot/main.c
+++ b/arch/powerpc/boot/main.c
@@ -205,7 +205,11 @@ void start(void)
 	if (console_ops.close)
 		console_ops.close();
 
+#ifdef __powerpc64__
+	kentry = (kernel_entry_t) &vmlinux.addr;
+#else
 	kentry = (kernel_entry_t) vmlinux.addr;
+#endif
 	if (ft_addr)
 		kentry(ft_addr, 0, NULL);
 	else
-- 
1.7.10.4
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help