summaryrefslogtreecommitdiffstats
path: root/sys/arch/sh
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2014-05-10 05:33:00 +0000
committerguenther <guenther@openbsd.org>2014-05-10 05:33:00 +0000
commitdb13da92eb2ef3f914d44e46ff660e735bbd799f (patch)
tree758d54156305711a96561bfe79f5b8764e1bdfb0 /sys/arch/sh
parent__bounded => __attribute__((__bounded__ (diff)
downloadwireguard-openbsd-db13da92eb2ef3f914d44e46ff660e735bbd799f.tar.xz
wireguard-openbsd-db13da92eb2ef3f914d44e46ff660e735bbd799f.zip
Factor out the common ast bits into mi_ast()
ok deraadt@
Diffstat (limited to 'sys/arch/sh')
-rw-r--r--sys/arch/sh/sh/trap.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/sys/arch/sh/sh/trap.c b/sys/arch/sh/sh/trap.c
index 56c9828686c..10035c940b5 100644
--- a/sys/arch/sh/sh/trap.c
+++ b/sys/arch/sh/sh/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.26 2014/05/08 21:43:04 miod Exp $ */
+/* $OpenBSD: trap.c,v 1.27 2014/05/10 05:33:00 guenther Exp $ */
/* $NetBSD: exception.c,v 1.32 2006/09/04 23:57:52 uwe Exp $ */
/* $NetBSD: syscall.c,v 1.6 2006/03/07 07:21:50 thorpej Exp $ */
@@ -479,18 +479,8 @@ ast(struct proc *p, struct trapframe *tf)
while (p->p_md.md_astpending) {
p->p_md.md_astpending = 0;
- uvmexp.softs++;
-
refreshcreds(p);
- if (p->p_flag & P_OWEUPC) {
- ADDUPROF(p);
- }
-
- if (want_resched) {
- /* We are being preempted. */
- preempt(NULL);
- }
-
+ mi_ast(p, want_resched);
userret(p);
}
}