PERFORCE change 59062 for review

David Xu davidxu at FreeBSD.org
Fri Aug 6 21:35:25 PDT 2004


http://perforce.freebsd.org/chv.cgi?CH=59062

Change 59062 by davidxu at davidxu_alona on 2004/08/07 04:34:35

	call thread_use_enter for SA thread.

Affected files ...

.. //depot/projects/davidxu_ksedbg/src/sys/kern/subr_trap.c#6 edit

Differences ...

==== //depot/projects/davidxu_ksedbg/src/sys/kern/subr_trap.c#6 (text+ko) ====

@@ -161,7 +161,8 @@
 	mtx_assert(&Giant, MA_NOTOWNED);
 	mtx_assert(&sched_lock, MA_NOTOWNED);
 	td->td_frame = framep;
-	if (p->p_flag & P_SA)
+
+	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


More information about the p4-projects mailing list