From: Darren Hart <dvhart@linux.intel.com>
To: poky-bounces@yoctoproject.org
Cc: Nishanth Menon <nm@ti.com>, John Rigby <john.rigby@linaro.org>,
Tony Lindgren <tony@atomide.com>,
Koen Kooi <koen@beagleboard.org>,
poky@yoctoproject.org
Subject: Re: [PATCH 2/2] OMAP4: enable smc instruction in new assembler versions
Date: Fri, 28 Jan 2011 16:56:40 -0800 [thread overview]
Message-ID: <4D4365C8.6000405@linux.intel.com> (raw)
In-Reply-To: <1b0ff11d323853175357c01ab4d906f89bfbdb1f.1296261421.git.darren@dvhart.com>
On 01/28/2011 04:40 PM, poky-bounces@yoctoproject.org wrote:
> From: John Rigby<john.rigby@linaro.org>
>
Sorry bruce, forgot to include the source:
commit fe297dde5ae8f8bf67d3a87759289a99b48ecb2c angstrom-linux
--
Darren
> 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>
> Signed-off-by: Tony Lindgren<tony@atomide.com>
> ---
> 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
--
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel
next parent reply other threads:[~2011-01-29 0:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <cover.1296261421.git.darren@dvhart.com>
[not found] ` <1b0ff11d323853175357c01ab4d906f89bfbdb1f.1296261421.git.darren@dvhart.com>
2011-01-29 0:56 ` Darren Hart [this message]
2011-01-31 14:11 ` [PATCH 0/2] linux-yocto: arm fixes, beagleboard hub and OMAP4 armv7-a +sec extension Bruce Ashfield
2011-02-01 17:30 ` Darren Hart
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4D4365C8.6000405@linux.intel.com \
--to=dvhart@linux.intel.com \
--cc=john.rigby@linaro.org \
--cc=koen@beagleboard.org \
--cc=nm@ti.com \
--cc=poky-bounces@yoctoproject.org \
--cc=poky@yoctoproject.org \
--cc=tony@atomide.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.