Date: Sat, 22 Jun 2002 20:10:29 -0700 (PDT) From: Julian Elischer <julian@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 13300 for review Message-ID: <200206230310.g5N3ATv16154@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=13300 Change 13300 by julian@julian_ref on 2002/06/22 20:10:22 Upcalls need to unset the UNBOUND bit when scheduled. Affected files ... ... //depot/projects/kse/sys/kern/kern_switch.c#54 edit Differences ... ==== //depot/projects/kse/sys/kern/kern_switch.c#54 (text+ko) ==== @@ -132,6 +132,16 @@ TAILQ_REMOVE(&kg->kg_runq, td, td_runq); if (kg->kg_last_assigned == td) kg->kg_last_assigned = NULL; + /* + * If we have started running an upcall, + * Then TDF_UNBOUND WAS set because the thread was + * created without a KSE. Now that we have one, + * and it is our time to run, we make sure + * that BOUND semantics apply for the rest of + * the journey to userland, and into the UTS. + */ + if (td->td_flags & TDF_UPCALLING) + tdf->td_flags &= ~TDF_UNBOUND; } kg->kg_runnable--; CTR2(KTR_RUNQ, "choosethread: td=%p pri=%d", To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200206230310.g5N3ATv16154>