]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Avoid an FPE exception in FCSR mask probing
authorMaciej W. Rozycki <macro@linux-mips.org>
Tue, 2 Jun 2015 16:50:59 +0000 (17:50 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 3 Jun 2015 07:50:29 +0000 (09:50 +0200)
commit78c9dbfd6fd912b6157e0c98cc2655a67736c41b
tree41550c30a72b279e9c51cebe5a92c16f08302bbe
parent34e96669956165b8806f09a44666769c936db8d9
MIPS: Avoid an FPE exception in FCSR mask probing

Use the default FCSR value in mask probing, avoiding an FPE exception
where reset has left any exception enable and their corresponding cause
bits set and the register is then rewritten with these bits active.

Signed-off-by: Maciej W. Rozycki <macro@linux-mips.org>
Cc: Joshua Kinard <kumba@gentoo.org>
Cc: linux-mips@linux-mips.org
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/cpu-probe.c