瀏覽代碼

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>
Arnd Bergmann 10 年之前
父節點
當前提交
993198a641
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      arch/arm/mach-zx/headsmp.S

+ 1 - 0
arch/arm/mach-zx/headsmp.S

@@ -10,6 +10,7 @@
 #include <linux/linkage.h>
 #include <linux/linkage.h>
 
 
 	.align 3
 	.align 3
+	.arm
 
 
 /* It runs from physical address */
 /* It runs from physical address */
 ENTRY(zx_resume_jump)
 ENTRY(zx_resume_jump)