diff options
author | Chris Dearman <chris@mips.com> | 2006-07-01 00:35:28 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2006-07-13 22:26:03 +0200 |
commit | 57725f9eb689d04c9ae4334cef65633c0b95558f (patch) | |
tree | b247bba00349eb04619fc06bb13e1bfd506eeaa5 /arch/mips | |
parent | [MIPS] Malta: Fix build of certain configs. (diff) | |
download | linux-57725f9eb689d04c9ae4334cef65633c0b95558f.tar.xz linux-57725f9eb689d04c9ae4334cef65633c0b95558f.zip |
[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 '')
-rw-r--r-- | arch/mips/kernel/traps.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c index e262fb8330f4..954a198494ef 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; |