diff options
| author | 2014-05-10 05:33:00 +0000 | |
|---|---|---|
| committer | 2014-05-10 05:33:00 +0000 | |
| commit | db13da92eb2ef3f914d44e46ff660e735bbd799f (patch) | |
| tree | 758d54156305711a96561bfe79f5b8764e1bdfb0 /sys/arch/sparc | |
| parent | __bounded => __attribute__((__bounded__ (diff) | |
| download | wireguard-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.c | 8 |
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: |
