diff options
author | Chris Dearman <chris@mips.com> | 2006-06-30 22:35:28 (GMT) |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2006-07-13 20:26:03 (GMT) |
commit | 57725f9eb689d04c9ae4334cef65633c0b95558f (patch) | |
tree | b247bba00349eb04619fc06bb13e1bfd506eeaa5 /arch/mips/kernel/traps.c | |
parent | e1a4e469d77297fd006a3cf2b605fc6f782a8d26 (diff) | |
download | linux-57725f9eb689d04c9ae4334cef65633c0b95558f.tar.xz |
[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/mips/kernel/traps.c')
-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 e262fb8..954a198 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; |