Add a backtrace to the "fpudna in kernel mode!" case, to help track down

where this comes from.

Reviewed by:	bde
This commit is contained in:
Ed Maste 2009-09-24 14:26:42 +00:00
parent 249e7759ac
commit 43721b6e84
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=197455

View File

@ -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 */