Signed-off-by: Cédric Le Goater <c...@fr.ibm.com>
---
 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

_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev

Reply via email to