diff options
author | Julien Grall <julien.grall@linaro.org> | 2013-09-26 12:09:41 +0100 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2013-09-26 15:44:58 +0100 |
commit | 7b8684682785531f8a347c476357eaececc2526c (patch) | |
tree | 3dd9296572612b3aea1dfae60126dddf3ed291c3 /xen/include | |
parent | ff9b41bb347b08114dd89cdc8e45bfc1d1b12511 (diff) | |
download | xen-7b8684682785531f8a347c476357eaececc2526c.tar.gz xen-7b8684682785531f8a347c476357eaececc2526c.tar.bz2 xen-7b8684682785531f8a347c476357eaececc2526c.zip |
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 <julien.grall@linaro.org>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'xen/include')
-rw-r--r-- | xen/include/asm-arm/init.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 */ |