summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/kern/subr_trap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/subr_trap.c b/sys/kern/subr_trap.c
index 664fe63..fc129c4 100644
--- a/sys/kern/subr_trap.c
+++ b/sys/kern/subr_trap.c
@@ -162,6 +162,8 @@ ast(struct trapframe *framep)
mtx_assert(&sched_lock, MA_NOTOWNED);
td->td_frame = framep;
+ if ((p->p_flag & P_SA) && (td->td_mailbox == NULL))
+ thread_user_enter(p, td);
/*
* This updates the p_sflag's for the checks below in one
* "atomic" operation with turning off the astpending flag.
OpenPOWER on IntegriCloud