[PATCH 2/2] ARM: throw out no-MMU vector base fixup when ARMv7 isn't selected

Lucas Stach l.stach at pengutronix.de
Thu Jun 7 06:00:02 PDT 2018


Am Donnerstag, den 07.06.2018, 05:53 -0700 schrieb Andrey Smirnov:
> > On Thu, Jun 7, 2018 at 2:42 AM, Lucas Stach <l.stach at pengutronix.de> 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?

I just hadn't noticed this patch, when I wrote this one. So we can 
drop this one if yours get merged.

Regards,
Lucas

> 
> > > > Signed-off-by: Lucas Stach <l.stach at pengutronix.de>
> > ---
> >  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 at lists.infradead.org
> > http://lists.infradead.org/mailman/listinfo/barebox



More information about the barebox mailing list