From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-it0-x242.google.com ([2607:f8b0:4001:c0b::242]) by merlin.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fQuPl-0006Br-GR for barebox@lists.infradead.org; Thu, 07 Jun 2018 12:53:19 +0000 Received: by mail-it0-x242.google.com with SMTP id l6-v6so12499935iti.2 for ; Thu, 07 Jun 2018 05:53:06 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20180607094235.29848-2-l.stach@pengutronix.de> References: <20180607094235.29848-1-l.stach@pengutronix.de> <20180607094235.29848-2-l.stach@pengutronix.de> From: Andrey Smirnov Date: Thu, 7 Jun 2018 05:53:03 -0700 Message-ID: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH 2/2] ARM: throw out no-MMU vector base fixup when ARMv7 isn't selected To: Lucas Stach Cc: Barebox List On Thu, Jun 7, 2018 at 2:42 AM, Lucas Stach wrote: > May save some code space, but more importantly fixes the ARMv8 build. > Does http://lists.infradead.org/pipermail/barebox/2018-May/033184.html not work in your case? Thanks, Andrey Smirnov > Signed-off-by: Lucas Stach > --- > arch/arm/cpu/no-mmu.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/arch/arm/cpu/no-mmu.c b/arch/arm/cpu/no-mmu.c > index 7268fa9b9d78..eff4cdcba4be 100644 > --- a/arch/arm/cpu/no-mmu.c > +++ b/arch/arm/cpu/no-mmu.c > @@ -37,7 +37,8 @@ static int nommu_v7_vectors_init(void) > void *vectors; > u32 cr; > > - if (cpu_architecture() < CPU_ARCH_ARMv7) > + if (!IS_ENABLED(CONFIG_CPU_32v7) || > + (cpu_architecture() < CPU_ARCH_ARMv7)) > return 0; > > /* > -- > 2.17.1 > > > _______________________________________________ > barebox mailing list > barebox@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/barebox _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox