mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
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. Signed-off-by: Julien Grall <julien.grall@linaro.org> Acked-by: Ian Campbell <ian.campbell@citrix.com>
This commit is contained in:
1 parent
f2831c3a4a
commit
8e08085f0f
1 file changed
+2
-1
@@ -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) */
|
||||
|
||||
|
||||