Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Sep 2009 14:26:42 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r197455 - head/sys/amd64/amd64
Message-ID:  <200909241426.n8OEQgKf099164@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Thu Sep 24 14:26:42 2009
New Revision: 197455
URL: http://svn.freebsd.org/changeset/base/197455

Log:
  Add a backtrace to the "fpudna in kernel mode!" case, to help track down
  where this comes from.
  
  Reviewed by:	bde

Modified:
  head/sys/amd64/amd64/trap.c

Modified: head/sys/amd64/amd64/trap.c
==============================================================================
--- head/sys/amd64/amd64/trap.c	Thu Sep 24 11:11:00 2009	(r197454)
+++ head/sys/amd64/amd64/trap.c	Thu Sep 24 14:26:42 2009	(r197455)
@@ -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 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200909241426.n8OEQgKf099164>