diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2006-12-24 20:29:20 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2006-12-24 20:29:20 +0000 |
commit | 0330d467c5d5654526bf0e8d6141cf8d59a148ed (patch) | |
tree | 9f13e3cb00acf1e51b34160c6fcf200312939bf8 /sys/arch/sparc64 | |
parent | 0ece0a5e4e73b44f42815ab3f5f0bc9f7e3bb7c8 (diff) |
Check for want_resched when processing AST and nowhere else. But then, when
doing so, do not check for signals - userret() will do this.
Diffstat (limited to 'sys/arch/sparc64')
-rw-r--r-- | sys/arch/sparc64/sparc64/trap.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/sys/arch/sparc64/sparc64/trap.c b/sys/arch/sparc64/sparc64/trap.c index 6b2b67ffb50..57820d5d2b2 100644 --- a/sys/arch/sparc64/sparc64/trap.c +++ b/sys/arch/sparc64/sparc64/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.43 2006/07/01 16:24:17 miod Exp $ */ +/* $OpenBSD: trap.c,v 1.44 2006/12/24 20:29:19 miod Exp $ */ /* $NetBSD: trap.c,v 1.73 2001/08/09 01:03:01 eeh Exp $ */ /* @@ -526,7 +526,14 @@ badtrap: #endif case T_AST: - break; /* the work is all in userret() */ + want_ast = 0; + if (p->p_flag & P_OWEUPC) { + p->p_flag &= ~P_OWEUPC; + ADDUPROF(p); + } + if (want_resched) + preempt(NULL); + break; case T_ILLINST: { |