From owner-p4-projects Sat Jun 22 20:11:31 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 0EF9537B405; Sat, 22 Jun 2002 20:10:40 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 7729D37B40C for ; Sat, 22 Jun 2002 20:10:29 -0700 (PDT) Received: (from perforce@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g5N3ATv16154 for perforce@freebsd.org; Sat, 22 Jun 2002 20:10:29 -0700 (PDT) (envelope-from julian@freebsd.org) Date: Sat, 22 Jun 2002 20:10:29 -0700 (PDT) Message-Id: <200206230310.g5N3ATv16154@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: perforce set sender to julian@freebsd.org using -f From: Julian Elischer Subject: PERFORCE change 13300 for review To: Perforce Change Reviews Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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