[PATCH] arm: socfpga: fix build break for allyesconfig
Pavel Machek
pavel at denx.de
Fri Oct 26 19:00:53 EDT 2012
Hi!
> > > If the above assembly file can only run on ARMv7, consider putting
> > >
> > > .march armv7
> > >
> > > or similar before it.
> >
> > My version of gas does not seem to recognize .march
>
> Ah, that's because it's .arch not .march. Please could you check with
> .arch instead. If proven successful we should move the existing
> AFLAGS_xxx.o Makefile stuff into the assembly files concerned.
.arch armv7
results in
arch/arm/mach-socfpga/headsmp.S:21: Error: attempt to use an ARM
instruction on a Thumb-only processor -- `movw
r0,#:lower16:(0xffd08000+0x10)'
...
Using .arch armv7-a indeed works and is a very nice solution.
Signed-off-by: Pavel Machek <pavel at denx.de>
--- a/arch/arm/mach-socfpga/headsmp.S
+++ b/arch/arm/mach-socfpga/headsmp.S
@@ -11,6 +11,7 @@
#include <linux/init.h>
__INIT
+ .arch armv7-a
#define HPS_SYSMGR_ADDRESS 0xffd08000
#define CONFIG_SYSTEM_MANAGER HPS_SYSMGR_ADDRESS
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
More information about the linux-arm-kernel
mailing list