Re: [PATCH] MIPS: zboot: head.S clean up
From: Jiaxun Yang
Date: Mon Dec 21 2020 - 09:20:09 EST
On Mon, Dec 21, 2020, at 10:09 PM, Paul Cercueil wrote:
> Hi Jiaxun,
>
> Le lun. 21 déc. 2020 à 21:00, Jiaxun Yang <jiaxun.yang@xxxxxxxxxxx> a
> écrit :
> > .cprestore is removed as we don't except Position Independent
> > zboot ELF.
> >
> > .noreorder is also removed and rest instructions is massaged
> > to improve readability.
> >
> > t9 register is used to indirect jump as MIPS ABI requirement.
> >
> > Reported-by: Paul Cercueil <paul@xxxxxxxxxxxxxxx>
> > Signed-off-by: Jiaxun Yang <jiaxun.yang@xxxxxxxxxxx>
> > ---
> > arch/mips/boot/compressed/head.S | 17 +++++++----------
> > 1 file changed, 7 insertions(+), 10 deletions(-)
> >
> > diff --git a/arch/mips/boot/compressed/head.S
> > b/arch/mips/boot/compressed/head.S
> > index 409cb483a9ff..977218c90bc8 100644
> > --- a/arch/mips/boot/compressed/head.S
> > +++ b/arch/mips/boot/compressed/head.S
> > @@ -15,8 +15,6 @@
> > #include <asm/asm.h>
> > #include <asm/regdef.h>
> >
> > - .set noreorder
> > - .cprestore
> > LEAF(start)
> > start:
>
> You can also remove the 'start' label, since it's declared inside the
> LEAF() macro as well. GNU's assembler won't mind, but LLVM will choke
> on that.
Thanks, will do in v2!
I was trying to catch you on IRC but failed every time when it comes to my mind :-(
>
> Cheers,
> -Paul
>
- Jiaxun