summaryrefslogtreecommitdiff
path: root/sys/arch/i386
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2006-12-24 20:29:20 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2006-12-24 20:29:20 +0000
commit0330d467c5d5654526bf0e8d6141cf8d59a148ed (patch)
tree9f13e3cb00acf1e51b34160c6fcf200312939bf8 /sys/arch/i386
parent0ece0a5e4e73b44f42815ab3f5f0bc9f7e3bb7c8 (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/i386')
-rw-r--r--sys/arch/i386/i386/trap.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/i386/i386/trap.c b/sys/arch/i386/i386/trap.c
index 7392782d26a..1a293e75e86 100644
--- a/sys/arch/i386/i386/trap.c
+++ b/sys/arch/i386/i386/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.78 2006/09/19 11:06:33 jsg Exp $ */
+/* $OpenBSD: trap.c,v 1.79 2006/12/24 20:29:19 miod Exp $ */
/* $NetBSD: trap.c,v 1.95 1996/05/05 06:50:02 mycroft Exp $ */
/*-
@@ -409,6 +409,8 @@ trap(struct trapframe frame)
ADDUPROF(p);
KERNEL_PROC_UNLOCK(p);
}
+ if (want_resched)
+ preempt(NULL);
goto out;
case T_DNA|T_USER: {