All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vikas MANOCHA <vikas.manocha@st.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/2] arm: Add Kconfig symbols used for Linux asm compatibility
Date: Fri, 9 Jun 2017 00:41:16 +0000	[thread overview]
Message-ID: <eaad17f763234b489546fe286dc5d419@SFHDAG7NODE3.st.com> (raw)
In-Reply-To: <20170609001220.GS10782@bill-the-cat>

Hi Tom,

> -----Original Message-----
> From: Tom Rini [mailto:trini at konsulko.com]
> Sent: Thursday, June 08, 2017 5:12 PM
> To: Vikas MANOCHA <vikas.manocha@st.com>
> Cc: Phil Edworthy <phil.edworthy@renesas.com>; Albert Aribaud <albert.u.boot@aribaud.net>; Kamil Lulko
> <kamil.lulko@gmail.com>; u-boot at lists.denx.de
> Subject: Re: [PATCH 1/2] arm: Add Kconfig symbols used for Linux asm compatibility
> 
> On Fri, Jun 09, 2017 at 12:07:40AM +0000, Vikas MANOCHA wrote:
> 
> > Hi Albert/Tom,
> >
> > > -----Original Message-----
> > > From: Phil Edworthy [mailto:phil.edworthy at renesas.com]
> > > Sent: Wednesday, May 31, 2017 11:33 PM
> > > To: Albert Aribaud <albert.u.boot@aribaud.net>
> > > Cc: Tom Rini <trini@konsulko.com>; Vikas MANOCHA
> > > <vikas.manocha@st.com>; Kamil Lulko <kamil.lulko@gmail.com>; u-
> > > boot at lists.denx.de; Phil Edworthy <phil.edworthy@renesas.com>
> > > Subject: [PATCH 1/2] arm: Add Kconfig symbols used for Linux asm
> > > compatibility
> > >
> > > Rather than change asm files that come from Linux, add the symbols
> > > to Kconfig. Since one of the symbols is for thumb2 builds, make CPU_V7M always select them.
> > >
> > > Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com>
> > > ---
> > >  arch/arm/Kconfig      | 10 ++++++++++
> > >  arch/arm/lib/Makefile |  2 --
> > >  2 files changed, 10 insertions(+), 2 deletions(-)
> > >
> > > diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index
> > > 2a3a36e..2793651 100644
> > > --- a/arch/arm/Kconfigl
> > > +++ b/arch/arm/Kconfig
> > > @@ -19,6 +19,15 @@ config HAS_VBAR
> > >  config HAS_THUMB2
> > >  	bool
> > >
> > > +# Used for compatibility with asm files copied from the kernel
> > > +config ARM_ASM_UNIFIED
> > > +	bool
> > > +	default y
> >
> > Is every arm arch (arm720, arm926 etc) assembly code written for unified ?
> > Otherwise we might have run-time side effects.
> 
> I could be missing something, but this is only used by <asm/assembler.h> and in turn only by arch/arm/lib/*.S, where we already had
> been defining this.

Yes, you are right. I was under the impression that asm/assembler.h is being used by all arm archs everywhere like startup code, cache mgt etc.

Cheers,
Vikas

> 
> --
> Tom

      reply	other threads:[~2017-06-09  0:41 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-01  6:33 [U-Boot] [PATCH 1/2] arm: Add Kconfig symbols used for Linux asm compatibility Phil Edworthy
2017-06-01  6:33 ` [U-Boot] [PATCH v3 2/2] armv7m: Fix larger builds Phil Edworthy
2017-06-06  0:23   ` [U-Boot] [U-Boot,v3,2/2] " Tom Rini
2017-06-06  0:23 ` [U-Boot] [U-Boot, 1/2] arm: Add Kconfig symbols used for Linux asm compatibility Tom Rini
2017-06-09  0:07 ` [U-Boot] [PATCH " Vikas MANOCHA
2017-06-09  0:12   ` Tom Rini
2017-06-09  0:41     ` Vikas MANOCHA [this message]

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=eaad17f763234b489546fe286dc5d419@SFHDAG7NODE3.st.com \
    --to=vikas.manocha@st.com \
    --cc=u-boot@lists.denx.de \
    /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.