Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Jun 2002 23:39:56 -0700 (PDT)
From:      Julian Elischer <julian@elischer.org>
To:        Julian Elischer <julian@FreeBSD.org>
Cc:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   Re: PERFORCE change 13300 for review
Message-ID:  <Pine.BSF.4.21.0206222339080.44896-100000@InterJet.elischer.org>
In-Reply-To: <200206230310.g5N3ATv16154@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0206222339080.44896-100000>