summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorChris Dearman <chris@mips.com>2006-06-30 23:35:28 +0100
committerRalf Baechle <ralf@linux-mips.org>2006-07-13 21:26:03 +0100
commit57725f9eb689d04c9ae4334cef65633c0b95558f (patch)
treeb247bba00349eb04619fc06bb13e1bfd506eeaa5 /arch
parente1a4e469d77297fd006a3cf2b605fc6f782a8d26 (diff)
[MIPS] Panic on fp exception in kernel mode.
There should never be a FP exception in kernel mode. Signed-off-by: Chris Dearman <chris@mips.com> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/mips/kernel/traps.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c
index e262fb8330f..954a198494e 100644
--- a/arch/mips/kernel/traps.c
+++ b/arch/mips/kernel/traps.c
@@ -569,6 +569,8 @@ asmlinkage void do_ov(struct pt_regs *regs)
*/
asmlinkage void do_fpe(struct pt_regs *regs, unsigned long fcr31)
{
+ die_if_kernel("FP exception in kernel code", regs);
+
if (fcr31 & FPU_CSR_UNI_X) {
int sig;