From aa48469d42f903a47e21fbd28186eead57fa58dd Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Tue, 27 Feb 2007 22:46:33 +0000 Subject: nicer panic; kettenis ok --- sys/arch/sparc64/sparc64/trap.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sys') diff --git a/sys/arch/sparc64/sparc64/trap.c b/sys/arch/sparc64/sparc64/trap.c index 98dc2c6a14d..00e590f3c32 100644 --- a/sys/arch/sparc64/sparc64/trap.c +++ b/sys/arch/sparc64/sparc64/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.45 2006/12/24 20:30:35 miod Exp $ */ +/* $OpenBSD: trap.c,v 1.46 2007/02/27 22:46:32 deraadt Exp $ */ /* $NetBSD: trap.c,v 1.73 2001/08/09 01:03:01 eeh Exp $ */ /* @@ -974,9 +974,8 @@ data_access_error(tf, type, afva, afsr, sfva, sfsr) trap_trace_dis = 1; /* Disable traptrace for printf */ (void) splhigh(); - printf("data fault: pc=%lx addr=%lx sfsr=%b\n", + panic("data fault: pc=%lx addr=%lx sfsr=%b\n", (u_long)pc, (long)sfva, sfsr, SFSR_BITS); - panic("kernel fault"); /* NOTREACHED */ } -- cgit v1.2.3