Skip to contentSkip to conversation

OMAP4: enable smc instruction in new assembler versions

PATCH Darren Hart 2 participants 3 messages Jan 29, 2011 – Feb 1, 2011 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): 1b0ff11d323853175357c01ab4d906f89bfbdb1f.1296261421.git.darren@dvhart.com

#2 lore raw
Quoted 2 lines · On 01/28/2011 04:40 PM, [email protected] wrote:

From: John Rigby<[email protected]>

Sorry bruce, forgot to include the source:

commit fe297dde5ae8f8bf67d3a87759289a99b48ecb2c angstrom-linux

--
Darren

Quoted 31 lines

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.

---
  arch/arm/mach-omap2/Makefile |    5 +++--
  1 files changed, 3 insertions(+), 2 deletions(-)
arch/arm/mach-omap2/Makefile +3 -2
index 60e51bc..ee9ef4f 100644
@@ -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
Signature · 3 lines
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel
#3 lore raw

Re: [PATCH 0/2] linux-yocto: arm fixes, beagleboard hub and OMAP4 armv7-a +sec extension

In reply to a message not in the archive
Quoted 6 lines · On Fri, Jan 28, 2011 at 7:40 PM, <[email protected]> wrote:

From: Darren Hart <[email protected]>

Please apply the following patches to the yocto/standard/base branch and rebase at least yocto/standard/beagleboard on base. With these patches in place and the corresponding meta patches to follow, the Beagleboard xM will boot the linux-yocto kernel.

I'll keep the cc' list on this reply since it has been already started, but as the out of band comms indicated we'll try and streamline this in the future.

These look good, I've pulled them into my tree and am testing them along side other updates, they'll be pushed out in the next day or so.

Cheers,

Bruce

Quoted 25 lines

Pull URL: git://git.pokylinux.org/linux-yocto-2.6.37-contrib.git
 Branch: dvhart/base
 Browse: http://git.pokylinux.org/cgit.cgi/linux-yocto-2.6.37-contrib/log/?h=dvhart/base

Thanks,
   Darren Hart <[email protected]>
---

John Rigby (1):
 OMAP4: enable smc instruction in new assembler versions

Koen Kooi (1):
 omap3: beaglexm: fix EHCI power up GPIO dir

 arch/arm/mach-omap2/Makefile            |    5 +++-- arch/arm/mach-omap2/board-omap3beagle.c |   10 ++++++++--

 2 files changed, 11 insertions(+), 4 deletions(-)

_______________________________________________
poky mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/poky

Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"
#4 lore raw

Re: [PATCH 0/2] linux-yocto: arm fixes, beagleboard hub and OMAP4 armv7-a +sec extension

In reply to a message not in the archive
Quoted 10 lines · On 01/28/2011 04:40 PM, [email protected] wrote:

From: Darren Hart<[email protected]>

Please apply the following patches to the yocto/standard/base branch and rebase at least yocto/standard/beagleboard on base. With these patches in place and the corresponding meta patches to follow, the Beagleboard xM will boot the linux-yocto kernel.

Pull URL: git://git.pokylinux.org/linux-yocto-2.6.37-contrib.git
Branch: dvhart/base
Browse: http://git.pokylinux.org/cgit.cgi/linux-yocto-2.6.37-contrib/log/?h=dvhart/base

Bruce, this set has not changed, and is still available in my contrib/dvhart/base branch.

--
Darren

Quoted 20 lines

Thanks,
Darren Hart<[email protected]>
---

John Rigby (1):
OMAP4: enable smc instruction in new assembler versions

Koen Kooi (1):
omap3: beaglexm: fix EHCI power up GPIO dir

  arch/arm/mach-omap2/Makefile            |    5 +++--
  arch/arm/mach-omap2/board-omap3beagle.c |   10 ++++++++--
  2 files changed, 11 insertions(+), 4 deletions(-)

_______________________________________________
poky mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/poky

Signature · 3 lines
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel