]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
MIPS: Fix R2300 FP context switch handling
authorPaul Burton <paul.burton@imgtec.com>
Mon, 21 Sep 2015 17:07:42 +0000 (10:07 -0700)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 2 Oct 2015 17:16:46 +0000 (19:16 +0200)
commit085c2f25d36ef4a69bb1dab933daee0692426f15
tree7fc03ac0ba5a66889daa06524abb8f5159c1ec09
parent0fa24340f7c88d2814547d8d24d5e3a1803009cc
MIPS: Fix R2300 FP context switch handling

Commit 1a3d59579b9f ("MIPS: Tidy up FPU context switching") removed FP
context saving from the asm-written resume function in favour of reusing
existing code to perform the same task. However it only removed the FP
context saving code from the r4k_switch.S implementation of resume.
Remove it from the r2300_switch.S implementation too in order to prevent
attempting to save the FP context twice, which would likely lead to an
exception from the second save because the FPU had already been disabled
by the first save.

This patch has only been build tested, using rbtx49xx_defconfig.

Fixes: 1a3d59579b9f ("MIPS: Tidy up FPU context switching")
Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Cc: Maciej W. Rozycki <macro@linux-mips.org>
Cc: linux-kernel@vger.kernel.org
Cc: Manuel Lauss <manuel.lauss@gmail.com>
Patchwork: https://patchwork.linux-mips.org/patch/11167/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/r2300_switch.S