[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] arm: Handle booting on SMP platforms



# HG changeset patch
# User Tim Deegan <tim@xxxxxxx>
# Date 1330424247 0
# Node ID a43eeaedf61ccaf269d0823ea80d3dfa8157cc63
# Parent  d19a254197d773a9ecdeb3516f2ea473ea255e29
arm: Handle booting on SMP platforms

Make all non-boot CPUs wait forever instead of trying to boot in parallel.

Signed-off-by: Tim Deegan <tim@xxxxxxx>
Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
Committed-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
---


diff -r d19a254197d7 -r a43eeaedf61c xen/arch/arm/head.S
--- a/xen/arch/arm/head.S       Tue Feb 28 10:17:27 2012 +0000
+++ b/xen/arch/arm/head.S       Tue Feb 28 10:17:27 2012 +0000
@@ -61,6 +61,19 @@
        add   r8, r10                /* r8 := paddr(DTB) */
 #endif
 
+       /* Are we the boot CPU? */
+       mrc   CP32(r0, MPIDR)
+       tst   r0, #(1<<31)           /* Multiprocessor extension supported? */
+       beq   boot_cpu
+       tst   r0, #(1<<30)           /* Uniprocessor system? */
+       bne   boot_cpu
+       bics  r0, r0, #(0xff << 24)  /* Ignore flags */
+       beq   boot_cpu               /* If all other fields are 0, we win */
+
+1:     wfi
+       b     1b
+       
+boot_cpu:
 #ifdef EARLY_UART_ADDRESS
        /* Say hello */
        ldr   r11, =EARLY_UART_ADDRESS  /* r11 := UART base address */
diff -r d19a254197d7 -r a43eeaedf61c xen/include/asm-arm/cpregs.h
--- a/xen/include/asm-arm/cpregs.h      Tue Feb 28 10:17:27 2012 +0000
+++ b/xen/include/asm-arm/cpregs.h      Tue Feb 28 10:17:27 2012 +0000
@@ -91,6 +91,7 @@
 /* Coprocessor 15 */
 
 /* CP15 CR0: CPUID and Cache Type Registers */
+#define MPIDR           p15,0,c0,c0,5   /* Multiprocessor Affinity Register */
 #define ID_PFR0         p15,0,c0,c1,0   /* Processor Feature Register 0 */
 #define ID_PFR1         p15,0,c0,c1,1   /* Processor Feature Register 1 */
 #define ID_DFR0         p15,0,c0,c1,2   /* Debug Feature Register 0 */

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.