Skip to content

Commit 25d8b92

Browse files
kbeldanralfbaechle
authored andcommitted
MIPS: head: Reorder instructions missing a delay slot
In this sequence the 'move' is assumed in the delay slot of the 'beq', but head.S is in reorder mode and the former gets pushed one 'nop' farther by the assembler. The corrected behavior made booting with an UHI supplied dtb erratic. Fixes: 15f37e1 ("MIPS: store the appended dtb address in a variable") Signed-off-by: Karl Beldan <karl.beldan+oss@gmail.com> Reviewed-by: James Hogan <james.hogan@imgtec.com> Cc: Jonas Gorski <jogo@openwrt.org> Cc: linux-mips@linux-mips.org Cc: linux-kernel@vger.kernel.org Cc: stable@vger.kernel.org Patchwork: https://patchwork.linux-mips.org/patch/16614/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
1 parent c0bc126 commit 25d8b92

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/mips/kernel/head.S‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ NESTED(kernel_entry, 16, sp) # kernel entry point
106106
beq t0, t1, dtb_found
107107
#endif
108108
li t1, -2
109-
beq a0, t1, dtb_found
110109
move t2, a1
110+
beq a0, t1, dtb_found
111111

112112
li t2, 0
113113
dtb_found:

0 commit comments

Comments
 (0)