summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDale S. Rahn <rahnds@cvs.openbsd.org>2000-07-08 19:43:40 +0000
committerDale S. Rahn <rahnds@cvs.openbsd.org>2000-07-08 19:43:40 +0000
commit5d4e0dcd14bbbe0a02285f2094f71cd00d5e85b4 (patch)
tree80e8cb38853eb664f1d334b9c3e32cbdc1926cd9 /sys
parent9927567d362bb097c9f260bf08a16e653eb14d67 (diff)
More useful panic message. Improves debugging slightly.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/powerpc/powerpc/trap.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/arch/powerpc/powerpc/trap.c b/sys/arch/powerpc/powerpc/trap.c
index 4eb90b9ce7d..13e4f219d8c 100644
--- a/sys/arch/powerpc/powerpc/trap.c
+++ b/sys/arch/powerpc/powerpc/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.18 2000/06/08 22:25:22 niklas Exp $ */
+/* $OpenBSD: trap.c,v 1.19 2000/07/08 19:43:39 rahnds Exp $ */
/* $NetBSD: trap.c,v 1.3 1996/10/13 03:31:37 christos Exp $ */
/*
@@ -335,8 +335,6 @@ syscall_bad:
default:
brain_damage:
- printf("trap type %x at %x lr %x\n",
- type, frame->srr0, frame->lr);
/*
mpc_print_pci_stat();
*/
@@ -345,7 +343,8 @@ mpc_print_pci_stat();
/* set up registers */
db_save_regs(frame);
#endif
- panic("trap");
+ panic ("trap type %x at %x lr %x\n",
+ type, frame->srr0, frame->lr);
case EXC_PGM|EXC_USER:
@@ -398,7 +397,7 @@ for (i = 0; i < errnum; i++) {
db_save_regs(frame);
db_trap(T_BREAKPOINT);
#else
- panic("trap");
+ panic("trap EXC_PGM");
#endif
break;