xen/arm: Allow secondary cpus to start in THUMB
authorJulien Grall <julien.grall@linaro.org>
Thu, 25 Jul 2013 15:21:31 +0000 (16:21 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Mon, 29 Jul 2013 15:54:48 +0000 (16:54 +0100)
commit6b8d02fe423f799f653dd5c02db973cba7b449fe
treed61db9f2689d89c39624dd5c0bebc026bd249896
parentd2a167258b0b10567eb7abe3f34cf14660ed424e
xen/arm: Allow secondary cpus to start in THUMB

Unlike bx, eret will not update the instruction set (THUMB,ARM) according to
the return address. This will result to an unpredicable behaviour for the
processor if the address doesn't match the right instruction set.

When the kernel is compiled with THUMB2, THUMB bit needs to be set in CPSR
for the secondary cpus.

Signed-off-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/psci.c