summaryrefslogtreecommitdiff
path: root/arch/mips/pistachio/init.c
diff options
context:
space:
mode:
authorJinyang He <hejinyang@loongson.cn>2021-01-06 03:47:39 +0300
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2021-01-07 19:12:14 +0300
commitfdd85e04df3fdd55bb7f32786890fdfb200c40f0 (patch)
tree1885f0dfc2fe3cf011eceac1e68bb5d353f86a22 /arch/mips/pistachio/init.c
parenta6e83acee2dd377959ec4bdeaa463da45ba0f811 (diff)
downloadlinux-fdd85e04df3fdd55bb7f32786890fdfb200c40f0.tar.xz
MIPS: zboot: Avoid endless loop in clear BSS.
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 <hejinyang@loongson.cn> Reviewed-by: Jiaxun Yang <jiaxun.yang@flygoat.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'arch/mips/pistachio/init.c')
0 files changed, 0 insertions, 0 deletions