summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/sparc64/trap.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/sparc64/sparc64/trap.c')
-rw-r--r--sys/arch/sparc64/sparc64/trap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/sparc64/sparc64/trap.c b/sys/arch/sparc64/sparc64/trap.c
index 5c8f0273ceb..654c40133ff 100644
--- a/sys/arch/sparc64/sparc64/trap.c
+++ b/sys/arch/sparc64/sparc64/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.23 2002/10/12 01:09:43 krw Exp $ */
+/* $OpenBSD: trap.c,v 1.24 2003/02/17 01:29:20 henric Exp $ */
/* $NetBSD: trap.c,v 1.73 2001/08/09 01:03:01 eeh Exp $ */
/*
@@ -928,8 +928,6 @@ data_access_error(tf, type, afva, afsr, sfva, sfsr)
u_quad_t sticks;
union sigval sv;
- sv.sival_ptr = (void *)pc;
-
uvmexp.traps++;
if ((p = curproc) == NULL) /* safety check */
p = &proc0;
@@ -938,6 +936,8 @@ data_access_error(tf, type, afva, afsr, sfva, sfsr)
pc = tf->tf_pc;
tstate = tf->tf_tstate;
+ sv.sival_ptr = (void *)pc;
+
onfault = p->p_addr ? (long)p->p_addr->u_pcb.pcb_onfault : 0;
printf("data error type %x sfsr=%lx sfva=%lx afsr=%lx afva=%lx tf=%p\n",
type, sfsr, sfva, afsr, afva, tf);