summaryrefslogtreecommitdiff
path: root/sys/arch/mips64
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2010-10-24 15:39:19 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2010-10-24 15:39:19 +0000
commit45a1c7c63149bd25222da561e7da3774e32cde02 (patch)
tree9a8275b3f51fecaedb5e22a0e3ef0e3c5b89754d /sys/arch/mips64
parentd0a2185b65c836b1ab6eab1a61803421490c3710 (diff)
Don't short-circuit userret() when returning from trap() in the rm7000
performance counter code path (which is not enabled at the moment).
Diffstat (limited to 'sys/arch/mips64')
-rw-r--r--sys/arch/mips64/mips64/trap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/mips64/mips64/trap.c b/sys/arch/mips64/mips64/trap.c
index 911a563d2c2..44bae4b610e 100644
--- a/sys/arch/mips64/mips64/trap.c
+++ b/sys/arch/mips64/mips64/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.69 2010/09/21 21:59:44 miod Exp $ */
+/* $OpenBSD: trap.c,v 1.70 2010/10/24 15:39:18 miod Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -684,7 +684,7 @@ printf("SIG-BUSB @%p pc %p, ra %p\n", trapframe->badvaddr, trapframe->pc, trapfr
#ifdef RM7K_PERFCNTR
if (rm7k_watchintr(trapframe)) {
/* Return to user, don't add any more overhead */
- return;
+ goto out;
}
#endif
i = SIGTRAP;
@@ -718,7 +718,7 @@ printf("SIG-BUSB @%p pc %p, ra %p\n", trapframe->badvaddr, trapframe->pc, trapfr
trapframe->a2, trapframe->a3);
locr0->v0 = -result;
/* Return to user, don't add any more overhead */
- return;
+ goto out;
} else
#endif
/*