From 7b8684682785531f8a347c476357eaececc2526c Mon Sep 17 00:00:00 2001 From: Julien Grall Date: Thu, 26 Sep 2013 12:09:41 +0100 Subject: xen/arm: Use the hardware ID to boot correctly secondary cpus Secondary CPUs will spin in head.S until their MPIDR[23:0] correspond to the smp_up_cpu. Actually Xen will set the value with the logical CPU ID which is wrong. Use the cpu_logical_map to get the correct CPU ID. Signed-off-by: Julien Grall Acked-by: Ian Campbell --- xen/include/asm-arm/init.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'xen/include') diff --git a/xen/include/asm-arm/init.h b/xen/include/asm-arm/init.h index 7a07136eb4..5ac8cf8797 100644 --- a/xen/include/asm-arm/init.h +++ b/xen/include/asm-arm/init.h @@ -5,6 +5,8 @@ struct init_info { /* Pointer to the stack, used by head.S when entering in C */ unsigned char *stack; + /* Logical CPU ID, used by start_secondary */ + unsigned int cpuid; }; #endif /* _XEN_ASM_INIT_H */ -- cgit v1.2.3