tree 4bff2c4c28559c288c620b5a1acd1efa5e692d14
parent fb2cda24cccf4bd69ee58ed3e33705f2aebddbae
author Andi Kleen <[EMAIL PROTECTED]> Tue Apr 12 08:25:37 2005
committer Linus Torvalds <[EMAIL PROTECTED]> Tue Apr 12 08:25:37 2005
[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 <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
traps.c | 10 ++--------
1 files changed, 2 insertions(+), 8 deletions(-)
Index: arch/x86_64/kernel/traps.c
===================================================================
--- 0b6b5abbc0655e93aa8c670e630da48499f7d438/arch/x86_64/kernel/traps.c
(mode:100644 sha1:1c121146fb55cd2d2741388c9458e3f6bae5dff3)
+++ 4bff2c4c28559c288c620b5a1acd1efa5e692d14/arch/x86_64/kernel/traps.c
(mode:100644 sha1:1ad2477f57e5ebc140aeb5a11bf891dafe2960bf)
@@ -733,14 +733,8 @@
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 @@
conditional_sti(regs);
if ((regs->cs & 3) == 0 &&
- kernel_math_error(regs, "simd math error"))
+ kernel_math_error(regs, "kernel simd math error"))
return;
/*
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html