ARM: zynq: Support smp in thumb mode
authorLuis Araneda <luaraneda@gmail.com>
Thu, 8 Aug 2019 12:52:42 +0000 (08:52 -0400)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 14 Aug 2019 07:40:35 +0000 (09:40 +0200)
commit5f595063affa8590a03a4f3d30bb28b1560f9d49
treecb3aea398f6a3b7b99e7a6eb95e0d82ce02a2156
parent5f9e832c137075045d15cd6899ab0505cfb2ca4b
ARM: zynq: Support smp in thumb mode

Add .arm directive to headsmp.S to ensure that the
CPU starts in 32-bit ARM mode and the correct code
size is copied on smp bring-up.
This is related to the fix applied to SoCFPGA by
commit 5616f36713ea
("ARM: SoCFPGA: Fix secondary CPU startup in thumb2 kernel")

Additionally, start secondary CPUs on secondary_startup_arm
to automatically switch from ARM to thumb on a thumb kernel

Signed-off-by: Luis Araneda <luaraneda@gmail.com>
Suggested-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/arm/mach-zynq/headsmp.S
arch/arm/mach-zynq/platsmp.c