Skip to contentSkip to conversation

xen/arm32: Call start_xen only on the boot CPU

PATCH In review Julien Grall 2 participants 2 messages Oct 7, 2013 – Oct 10, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen/arm32: Call start_xen only on the boot CPU

The boot CPU can have a CPU ID non-equal to zero. Xen needs to check the logical CPU ID (in r12) to know if the CPU is the boot one.

---
 xen/arch/arm/arm32/head.S |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
xen/arch/arm/arm32/head.S +2 -1
index 92b3c48..ce1d21a 100644
@@ -403,7 +403,8 @@ launch:
         sub   sp, #CPUINFO_sizeof    /* Make room for CPU save record */
         mov   r0, r10                /* Marshal args: - phys_offset */
         mov   r1, r8                 /*               - DTB address */
-        movs  r2, r7                 /*               - CPU ID */
+        mov   r2, r7                 /*               - CPU ID */
+        teq   r12, #0
         beq   start_xen              /* and disappear into the land of C */
         b     start_secondary        /* (to the appropriate entry point) */
 
Signature · 1 line
1.7.10.4
#1 lore raw
Quoted 4 lines · Julien Grall

The boot CPU can have a CPU ID non-equal to zero. Xen needs to check the logical CPU ID (in r12) to know if the CPU is the boot one.

acked + applied, thanks.

64-bit looks correct already to me.