]> git.baikalelectronics.ru Git - kernel.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)
commit779917bd7df10eb1ea88f1ce2ebb13924109c9c5
tree7fc03ac0ba5a66889daa06524abb8f5159c1ec09
parentbeefa36eaa75cc6ac9e267947e0e30ce10075ed3
MIPS: Fix R2300 FP context switch handling

Commit 96d9dcfa8c81 ("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: 96d9dcfa8c81 ("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