summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2009-09-24 14:26:42 +0000
committeremaste <emaste@FreeBSD.org>2009-09-24 14:26:42 +0000
commit9485b3f20f55236d1fb8b9e6ac48a4cd0ae9c4e2 (patch)
tree35ff4bb1c4d507a6c9ace31a582f38bc855279bb
parent1b3aba050a96488665d31022a39df75a563582ee (diff)
downloadFreeBSD-src-9485b3f20f55236d1fb8b9e6ac48a4cd0ae9c4e2.zip
FreeBSD-src-9485b3f20f55236d1fb8b9e6ac48a4cd0ae9c4e2.tar.gz
Add a backtrace to the "fpudna in kernel mode!" case, to help track down
where this comes from. Reviewed by: bde
-rw-r--r--sys/amd64/amd64/trap.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/amd64/amd64/trap.c b/sys/amd64/amd64/trap.c
index cfccf3c..c97985d 100644
--- a/sys/amd64/amd64/trap.c
+++ b/sys/amd64/amd64/trap.c
@@ -505,8 +505,11 @@ trap(struct trapframe *frame)
* XXX this should be fatal unless the kernel has
* registered such use.
*/
- fpudna();
printf("fpudna in kernel mode!\n");
+#ifdef KDB
+ kdb_backtrace();
+#endif
+ fpudna();
goto out;
case T_STKFLT: /* stack fault */
OpenPOWER on IntegriCloud