From owner-p4-projects Sat Jun 22 23:40:50 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 3997737B40F; Sat, 22 Jun 2002 23:40:40 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from sccrmhc01.attbi.com (sccrmhc01.attbi.com [204.127.202.61]) by hub.freebsd.org (Postfix) with ESMTP id 2099B37B406; Sat, 22 Jun 2002 23:40:14 -0700 (PDT) Received: from InterJet.elischer.org ([12.232.206.8]) by sccrmhc01.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020623064013.KEZW1024.sccrmhc01.attbi.com@InterJet.elischer.org>; Sun, 23 Jun 2002 06:40:13 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id XAA44985; Sat, 22 Jun 2002 23:39:56 -0700 (PDT) Date: Sat, 22 Jun 2002 23:39:56 -0700 (PDT) From: Julian Elischer To: Julian Elischer Cc: Perforce Change Reviews Subject: Re: PERFORCE change 13300 for review In-Reply-To: <200206230310.g5N3ATv16154@freefall.freebsd.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 umm actually it WILL need to do this.. it's premature.. and without more changes I'm writing now will kill the system.. I'll back this out until I'm ready for it.. On Sat, 22 Jun 2002, Julian Elischer wrote: > 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