From f8c21c52ad6e966afbd00b332af6bf2335fff2e6 Mon Sep 17 00:00:00 2001 From: davidxu Date: Sun, 8 Aug 2004 22:28:33 +0000 Subject: Call thread_user_enter for M:N thread, ast() should be treated as another entrance of kernel. --- sys/kern/subr_trap.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/kern/subr_trap.c') 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. -- cgit v1.1