From: Vikas MANOCHA Date: Fri, 9 Jun 2017 00:41:16 +0000 Subject: [U-Boot] [PATCH 1/2] arm: Add Kconfig symbols used for Linux asm compatibility In-Reply-To: <20170609001220.GS10782@bill-the-cat> References: <1496298809-29956-1-git-send-email-phil.edworthy@renesas.com> <8abe9745e4d2483cbf8906988363b22a@SFHDAG7NODE3.st.com> <20170609001220.GS10782@bill-the-cat> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Tom, > -----Original Message----- > From: Tom Rini [mailto:trini at konsulko.com] > Sent: Thursday, June 08, 2017 5:12 PM > To: Vikas MANOCHA > Cc: Phil Edworthy ; Albert Aribaud ; Kamil Lulko > ; 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 > > > Cc: Tom Rini ; Vikas MANOCHA > > > ; Kamil Lulko ; u- > > > boot at lists.denx.de; Phil Edworthy > > > 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 > > > --- > > > 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 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