]> git.karo-electronics.de Git - karo-tx-linux.git/commit
MIPS: save/disable MSA in lose_fpu
authorPaul Burton <paul.burton@imgtec.com>
Fri, 11 Jul 2014 15:44:30 +0000 (16:44 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 1 Aug 2014 22:06:43 +0000 (00:06 +0200)
commit33c771ba5c5d067f85a5a6c4b11047219b5b8f4e
tree7753ca13db2de3a589b65f6ff1770b92cdba0689
parentb83406735a4ae0aff4b614664d6a64a0fd6b9917
MIPS: save/disable MSA in lose_fpu

The kernel depends upon MSA never being enabled when the FPU is not, a
condition which is currently violated in a few places (whilst saving
sigcontext, following mips_cpu_save). Catch all the problem cases by
disabling MSA in lose_fpu, after saving context if necessary.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/7302/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/fpu.h