[haiku-commits] r34854 - haiku/trunk/src/system/boot/platform/openfirmware/arch/ppc

  • From: superstippi@xxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sat, 2 Jan 2010 11:09:09 +0100 (CET)

Author: stippi
Date: 2010-01-02 11:09:09 +0100 (Sat, 02 Jan 2010)
New Revision: 34854
Changeset: http://dev.haiku-os.org/changeset/34854/haiku

Modified:
   
haiku/trunk/src/system/boot/platform/openfirmware/arch/ppc/arch_start_kernel.S
Log:
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!


Modified: 
haiku/trunk/src/system/boot/platform/openfirmware/arch/ppc/arch_start_kernel.S
===================================================================
--- 
haiku/trunk/src/system/boot/platform/openfirmware/arch/ppc/arch_start_kernel.S  
    2010-01-02 10:08:52 UTC (rev 34853)
+++ 
haiku/trunk/src/system/boot/platform/openfirmware/arch/ppc/arch_start_kernel.S  
    2010-01-02 10:09:09 UTC (rev 34854)
@@ -31,6 +31,7 @@
 
        // enter the kernel
        mtlr    %r4
+       li              %r4, 0
        blrl
 
        /* Actually we should never get here, but at least for debugging 
purposes


Other related posts:

  • » [haiku-commits] r34854 - haiku/trunk/src/system/boot/platform/openfirmware/arch/ppc - superstippi