This define will be use later to retrieve the correct hardware CPU ID.
Also replace hardcoded mask in arm32/head.S by this define.
Signed-off-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
beq boot_cpu
tst r0, #(1<<30) /* Uniprocessor system? */
bne boot_cpu
- bics r12, r0, #(0xff << 24) /* Mask out flags to get CPU ID */
+ bics r12, r0, #(~MPIDR_HWID_MASK) /* Mask out flags to get CPU ID */
beq boot_cpu /* If we're CPU 0, boot now */
/* Non-boot CPUs wait here to be woken up one at a time. */
#define MPIDR_SMP (1 << 31)
#define MPIDR_AFF0_SHIFT (0)
#define MPIDR_AFF0_MASK (0xff << MPIDR_AFF0_SHIFT)
+#define MPIDR_HWID_MASK 0xffffff
/* TTBCR Translation Table Base Control Register */
#define TTBCR_EAE 0x80000000