summaryrefslogtreecommitdiffstats
path: root/sys/arch/sparc
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/sparc
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/sparc')
-rw-r--r--sys/arch/sparc/sparc/trap.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/arch/sparc/sparc/trap.c b/sys/arch/sparc/sparc/trap.c
index 9ef25319c59..5f15e8392e8 100644
--- a/sys/arch/sparc/sparc/trap.c
+++ b/sys/arch/sparc/sparc/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.66 2014/04/30 04:20:31 miod Exp $ */
+/* $OpenBSD: trap.c,v 1.67 2014/05/10 05:33:00 guenther Exp $ */
/* $NetBSD: trap.c,v 1.58 1997/09/12 08:55:01 pk Exp $ */
/*
@@ -301,11 +301,7 @@ trap(type, psr, pc, tf)
case T_AST:
want_ast = 0;
- if (p->p_flag & P_OWEUPC) {
- ADDUPROF(p);
- }
- if (want_resched)
- preempt(NULL);
+ mi_ast(p, want_resched);
break;
case T_ILLINST: