]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: zx: fix building with CONFIG_THUMB2_KERNEL
authorArnd Bergmann <arnd@arndb.de>
Thu, 21 May 2015 08:36:42 +0000 (10:36 +0200)
committerArnd Bergmann <arnd@arndb.de>
Fri, 22 May 2015 14:45:54 +0000 (16:45 +0200)
commit4cb0bcf3d1e545888c64cde707695a494adccecd
tree3aab386bb4c2f75974b274a52b4cb982d05c7e96
parent131b82871e5e5611cf870a885a0877e908a70099
ARM: zx: fix building with CONFIG_THUMB2_KERNEL

The newly added zx platform causes a build error when
CONFIG_THUMB2_KERNEL is enabled:

arch/arm/mach-zx/headsmp.S:16: Error: invalid immediate for address calculation (value = 0x00000004)

I'm assuming that the ROM code that is calling these entry
points runs in ARM mode, so there would be another problem
in the same file, and we can solve both problems at once
by adding a '.arm' statement that will make zx_resume_jump
and zx_secondary_startup both be built as ARM code.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Jun Nie <jun.nie@linaro.org>
Tested-by: Jun Nie <jun.nie@linaro.org>
arch/arm/mach-zx/headsmp.S