• Paul Burton's avatar
    MIPS: Fix R2300 FP context switch handling · 085c2f25
    Paul Burton authored
    Commit 1a3d5957 ("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: 1a3d5957 ("MIPS: Tidy up FPU context switching")
    Signed-off-by: default avatarPaul 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: default avatarRalf Baechle <ralf@linux-mips.org>
    085c2f25
r2300_switch.S 2.67 KB