From 352455f2691ce7a70ff9eafd1cb13a8e58c54591 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Sat, 2 Jan 2010 10:09:09 +0000 Subject: [PATCH] Patch by Andreas Faerber: * The kernel's _start entry function expects now a second argument, the current CPU index. The PPC boot loader didn't initialize GPR4, passing its second argument, the kernel entry address, as CPU index, causing smp_cpu_rendezvous() to loop forever. This fix gets the PPC boot to a kernel debug prompt. The CPU index is currently fixed to 0. Thanks a lot! git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34854 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- .../boot/platform/openfirmware/arch/ppc/arch_start_kernel.S | 1 + 1 file changed, 1 insertion(+) diff --git a/src/system/boot/platform/openfirmware/arch/ppc/arch_start_kernel.S b/src/system/boot/platform/openfirmware/arch/ppc/arch_start_kernel.S index c0c082231c..2156e1d7a8 100644 --- a/src/system/boot/platform/openfirmware/arch/ppc/arch_start_kernel.S +++ b/src/system/boot/platform/openfirmware/arch/ppc/arch_start_kernel.S @@ -31,6 +31,7 @@ FUNCTION(arch_start_kernel): // enter the kernel mtlr %r4 + li %r4, 0 blrl /* Actually we should never get here, but at least for debugging purposes