All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] OMAP4: enable smc instruction in new assembler versions
@ 2010-12-01  5:57 John Rigby
  2010-12-18  1:28 ` [APPLIED] " Tony Lindgren
  2010-12-18  1:29 ` Tony Lindgren
  0 siblings, 2 replies; 3+ messages in thread
From: John Rigby @ 2010-12-01  5:57 UTC (permalink / raw)
  To: linux-omap; +Cc: Nicolas Pitre, John Rigby

New assemblers need -march=armv7-a+sec on command line or
.arch_extension sec inline to enable use of the smc instruction.

This patch uses as-instr to check the latter to conditionally
enable the former in AFLAGS for files that use smc.

Checked on both old and new binutils to verify that it does
not break old versions.

Signed-off-by: John Rigby <john.rigby@linaro.org>
---
 arch/arm/mach-omap2/Makefile |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-omap2/Makefile b/arch/arm/mach-omap2/Makefile
index 60e51bc..ee9ef4f 100644
--- a/arch/arm/mach-omap2/Makefile
+++ b/arch/arm/mach-omap2/Makefile
@@ -26,8 +26,9 @@ obj-$(CONFIG_LOCAL_TIMERS)		+= timer-mpu.o
 obj-$(CONFIG_HOTPLUG_CPU)		+= omap-hotplug.o
 obj-$(CONFIG_ARCH_OMAP4)		+= omap44xx-smc.o omap4-common.o
 
-AFLAGS_omap-headsmp.o			:=-Wa,-march=armv7-a
-AFLAGS_omap44xx-smc.o			:=-Wa,-march=armv7-a
+plus_sec := $(call as-instr,.arch_extension sec,+sec)
+AFLAGS_omap-headsmp.o			:=-Wa,-march=armv7-a$(plus_sec)
+AFLAGS_omap44xx-smc.o			:=-Wa,-march=armv7-a$(plus_sec)
 
 # Functions loaded to SRAM
 obj-$(CONFIG_ARCH_OMAP2420)		+= sram242x.o
-- 
1.7.3.1.120.g38a18


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

* [APPLIED] [PATCH] OMAP4: enable smc instruction in new assembler versions
  2010-12-01  5:57 [PATCH] OMAP4: enable smc instruction in new assembler versions John Rigby
@ 2010-12-18  1:28 ` Tony Lindgren
  2010-12-18  1:29 ` Tony Lindgren
  1 sibling, 0 replies; 3+ messages in thread
From: Tony Lindgren @ 2010-12-18  1:28 UTC (permalink / raw)
  To: linux-omap

This patch has been applied to the linux-omap
by youw fwiendly patch wobot.

Branch in linux-omap: devel-cleanup

Initial commit ID (Likely to change): fe297dde5ae8f8bf67d3a87759289a99b48ecb2c

PatchWorks
http://patchwork.kernel.org/patch/369681/

Git (Likely to change, and takes a while to get mirrored)
http://git.kernel.org/?p=linux/kernel/git/tmlind/linux-omap-2.6.git;a=commit;h=fe297dde5ae8f8bf67d3a87759289a99b48ecb2c



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

* Re: [PATCH] OMAP4: enable smc instruction in new assembler versions
  2010-12-01  5:57 [PATCH] OMAP4: enable smc instruction in new assembler versions John Rigby
  2010-12-18  1:28 ` [APPLIED] " Tony Lindgren
@ 2010-12-18  1:29 ` Tony Lindgren
  1 sibling, 0 replies; 3+ messages in thread
From: Tony Lindgren @ 2010-12-18  1:29 UTC (permalink / raw)
  To: John Rigby; +Cc: linux-omap, Nicolas Pitre

* John Rigby <john.rigby@linaro.org> [101130 21:49]:
> New assemblers need -march=armv7-a+sec on command line or
> .arch_extension sec inline to enable use of the smc instruction.
> 
> This patch uses as-instr to check the latter to conditionally
> enable the former in AFLAGS for files that use smc.
> 
> Checked on both old and new binutils to verify that it does
> not break old versions.

Thanks applying.

Tony

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

end of thread, other threads:[~2010-12-18  1:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-01  5:57 [PATCH] OMAP4: enable smc instruction in new assembler versions John Rigby
2010-12-18  1:28 ` [APPLIED] " Tony Lindgren
2010-12-18  1:29 ` Tony Lindgren

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.