summaryrefslogtreecommitdiffstats
path: root/arch/x86_64/kernel/traps.c
diff options
context:
space:
mode:
authorAndi Kleen2005-04-17 00:25:06 +0200
committerLinus Torvalds2005-04-17 00:25:06 +0200
commit3a848f632f86f1602094e6172cdc05c048042d7a (patch)
treed2082fe5f580f2b00db04659c78f6a7d309d1a1b /arch/x86_64/kernel/traps.c
parent[PATCH] x86_64: Support constantly ticking TSCs (diff)
downloadkernel-qcow2-linux-3a848f632f86f1602094e6172cdc05c048042d7a.tar.gz
kernel-qcow2-linux-3a848f632f86f1602094e6172cdc05c048042d7a.tar.xz
kernel-qcow2-linux-3a848f632f86f1602094e6172cdc05c048042d7a.zip
[PATCH] x86_64: Make kernel math errors a die() now
There were no reports about the previous warning for FPU exceptions in the kernel, so make it a die() now. Also improve the error messages slightly. Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/x86_64/kernel/traps.c')
-rw-r--r--arch/x86_64/kernel/traps.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/arch/x86_64/kernel/traps.c b/arch/x86_64/kernel/traps.c
index 1b06ab24538b..2f42fd5c075f 100644
--- a/arch/x86_64/kernel/traps.c
+++ b/arch/x86_64/kernel/traps.c
@@ -733,14 +733,8 @@ static int kernel_math_error(struct pt_regs *regs, char *str)
return 1;
}
notify_die(DIE_GPF, str, regs, 0, 16, SIGFPE);
-#if 0
- /* This should be a die, but warn only for now */
+ /* Illegal floating point operation in the kernel */
die(str, regs, 0);
-#else
- printk(KERN_DEBUG "%s: %s at ", current->comm, str);
- printk_address(regs->rip);
- printk("\n");
-#endif
return 0;
}
@@ -824,7 +818,7 @@ asmlinkage void do_simd_coprocessor_error(struct pt_regs *regs)
conditional_sti(regs);
if ((regs->cs & 3) == 0 &&
- kernel_math_error(regs, "simd math error"))
+ kernel_math_error(regs, "kernel simd math error"))
return;
/*