tree d2082fe5f580f2b00db04659c78f6a7d309d1a1b
parent c29601e9c1e7893d1755364e350c9188bd56d69f
author Andi Kleen <[EMAIL PROTECTED]> Sun, 17 Apr 2005 05:25:06 -0700
committer Linus Torvalds <[EMAIL PROTECTED]> Sun, 17 Apr 2005 05:25:06 -0700
[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]>
x86_64/kernel/traps.c | 10 ++--------
1 files changed, 2 insertions(+), 8 deletions(-)
Index: arch/x86_64/kernel/traps.c
===================================================================
--- 14813ddce4d8897b40cc8b3a2f76ace3ac58b36f/arch/x86_64/kernel/traps.c
(mode:100644 sha1:1b06ab24538bd61517ff7a85e75d77fbc952018d)
+++ d2082fe5f580f2b00db04659c78f6a7d309d1a1b/arch/x86_64/kernel/traps.c
(mode:100644 sha1:2f42fd5c075ffaf56788f66222a1f917c4ea6810)
@@ -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