summaryrefslogtreecommitdiff
path: root/arch/mips/bcm47xx
diff options
context:
space:
mode:
authorArcher Yan <ayan@wavecomp.com>2019-03-08 06:29:19 +0300
committerPaul Burton <paul.burton@mips.com>2019-03-11 21:11:11 +0300
commit47c25036b60f27b86ab44b66a8861bcf81cde39b (patch)
treea8f62bb0230208c170bfc3bad53506aa82a266e6 /arch/mips/bcm47xx
parent3f0a53bc6482fb09770982a8447981260ea258dc (diff)
downloadlinux-47c25036b60f27b86ab44b66a8861bcf81cde39b.tar.xz
MIPS: Fix kernel crash for R6 in jump label branch function
Insert Branch instruction instead of NOP to make sure assembler don't patch code in forbidden slot. In jump label function, it might be possible to patch Control Transfer Instructions(CTIs) into forbidden slot, which will generate Reserved Instruction exception in MIPS release 6. Signed-off-by: Archer Yan <ayan@wavecomp.com> Reviewed-by: Paul Burton <paul.burton@mips.com> [paul.burton@mips.com: - Add MIPS prefix to subject. - Mark for stable from v4.0, which introduced r6 support, onwards.] Signed-off-by: Paul Burton <paul.burton@mips.com> Cc: linux-mips@vger.kernel.org Cc: stable@vger.kernel.org # v4.0+
Diffstat (limited to 'arch/mips/bcm47xx')
0 files changed, 0 insertions, 0 deletions