Re: [PATCH] MIPS: zboot: Avoid endless loop in clear BSS.

2021-01-07 Thread Thomas Bogendoerfer
On Wed, Jan 06, 2021 at 08:47:39AM +0800, Jinyang He wrote: > Commit 2ee1503e546f ("MIPS: zboot: head.S clean up"). > > After .noreorder removed, clear BSS fall into endless loop. The bne > instruction will add nop to the delay slot at compile time. So a0 > register will not increment by 4. Fix

Re: [PATCH] MIPS: zboot: Avoid endless loop in clear BSS.

2021-01-05 Thread Jiaxun Yang
On Wed, Jan 6, 2021, at 8:47 AM, Jinyang He wrote: > Commit 2ee1503e546f ("MIPS: zboot: head.S clean up"). > > After .noreorder removed, clear BSS fall into endless loop. The bne > instruction will add nop to the delay slot at compile time. So a0 > register will not increment by 4. Fix it and

[PATCH] MIPS: zboot: Avoid endless loop in clear BSS.

2021-01-05 Thread Jinyang He
Commit 2ee1503e546f ("MIPS: zboot: head.S clean up"). After .noreorder removed, clear BSS fall into endless loop. The bne instruction will add nop to the delay slot at compile time. So a0 register will not increment by 4. Fix it and clear BSS from _edata to (_end - 1). Signed-off-by: Jinyang He