Module Name: src
Committed By: christos
Date: Thu Jul 16 14:21:12 UTC 2009
Modified Files:
src/sys/arch/amd64/amd64: trap.c
Log Message:
a little more diagnostic
To generate a diff of this commit:
cvs rdiff -u -r1.56 -r1.57 src/sys/arch/amd64/amd64/trap.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/amd64/amd64/trap.c
diff -u src/sys/arch/amd64/amd64/trap.c:1.56 src/sys/arch/amd64/amd64/trap.c:1.57
--- src/sys/arch/amd64/amd64/trap.c:1.56 Thu Jul 16 10:18:09 2009
+++ src/sys/arch/amd64/amd64/trap.c Thu Jul 16 10:21:12 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: trap.c,v 1.56 2009/07/16 14:18:09 christos Exp $ */
+/* $NetBSD: trap.c,v 1.57 2009/07/16 14:21:12 christos Exp $ */
/*-
* Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
@@ -68,7 +68,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.56 2009/07/16 14:18:09 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.57 2009/07/16 14:21:12 christos Exp $");
#include "opt_ddb.h"
#include "opt_kgdb.h"
@@ -390,6 +390,9 @@
ksi.ksi_code = ILL_COPROC;
break;
default:
+#ifdef DIAGNOSTIC
+ panic("unhandled type %x\n", type);
+#endif
break;
}
goto trapsignal;
@@ -436,6 +439,9 @@
ksi.ksi_code = FPE_FLTDIV;
break;
default:
+#ifdef DIAGNOSTIC
+ panic("unhandled type %x\n", type);
+#endif
break;
}
goto trapsignal;