]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/powerpc/kernel/head_32.S
powerpc: Fix 32-bit SMP boot on CHRP
[linux-2.6-omap-h63xx.git] / arch / powerpc / kernel / head_32.S
index a6de6dbc5ed8510465af4628c90ec4dc2436812d..0c326823c6d4caf088663efd2c68804c6696d983 100644 (file)
@@ -110,6 +110,12 @@ __start:
 #ifdef CONFIG_PPC_MULTIPLATFORM
        cmpwi   0,r5,0
        beq     1f
+
+       /* find out where we are now */
+       bcl     20,31,$+4
+0:     mflr    r8                      /* r8 = runtime addr here */
+       addis   r8,r8,(_stext - 0b)@ha
+       addi    r8,r8,(_stext - 0b)@l   /* current runtime base addr */
        bl      prom_init
        trap
 #endif