]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: head: Reorder instructions missing a delay slot
authorKarl Beldan <karl.beldan@gmail.com>
Tue, 27 Jun 2017 19:22:16 +0000 (19:22 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 27 Jun 2017 21:35:21 +0000 (23:35 +0200)
commit77e3106bf5421583c335a9038f3237618d47727f
tree72fa5534d97c8d3b7d03570278a7529cfc370aab
parent6be65a3b675d4708a2b4badedeee62b730947417
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: 85d9bf2b4e57 ("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>
arch/mips/kernel/head.S