summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2010-10-24 15:39:18 +0000
committermiod <miod@openbsd.org>2010-10-24 15:39:18 +0000
commit33dc82b701c3689cc66383f6e9924a260c3283da (patch)
tree8ee07ccf8e1d6beb18a9f62272343c2ed3b7b04f
parentWhen mentioning a function documented elsewhere, .Xr is often better than .Fn. (diff)
downloadwireguard-openbsd-33dc82b701c3689cc66383f6e9924a260c3283da.tar.xz
wireguard-openbsd-33dc82b701c3689cc66383f6e9924a260c3283da.zip
Don't short-circuit userret() when returning from trap() in the rm7000
performance counter code path (which is not enabled at the moment).
-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
/*