Make all non-boot CPUs wait forever instead of trying to boot in parallel.
Signed-off-by: Tim Deegan <tim@xen.org>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
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 */
/* 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 */