public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH] ARM: zx: fix building with CONFIG_THUMB2_KERNEL
@ 2015-05-21  8:36 Arnd Bergmann
  2015-05-21 13:04 ` Jun Nie
  0 siblings, 1 reply; 3+ messages in thread
From: Arnd Bergmann @ 2015-05-21  8:36 UTC (permalink / raw)
  To: linux-arm-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>
---
Hi Jun,

This patch fixes a build error with mach-zx, but I don't know if it's
actually correct. Can you check if the machine correctly boots
with this patch enabled and CONFIG_THUMB2_KERNEL=y set in the .config?

diff --git a/arch/arm/mach-zx/headsmp.S b/arch/arm/mach-zx/headsmp.S
index c0fece0c3955..a1aa4028389f 100644
--- a/arch/arm/mach-zx/headsmp.S
+++ b/arch/arm/mach-zx/headsmp.S
@@ -10,6 +10,7 @@
 #include <linux/linkage.h>
 
 	.align 3
+	.arm
 
 /* It runs from physical address */
 ENTRY(zx_resume_jump)

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-05-22 14:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-21  8:36 [PATCH] ARM: zx: fix building with CONFIG_THUMB2_KERNEL Arnd Bergmann
2015-05-21 13:04 ` Jun Nie
2015-05-22 14:46   ` Arnd Bergmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox