KSD/TSD take 2 (was: KSE critical regions)

Julian Elischer julian at elischer.org
Thu Jul 24 16:01:05 PDT 2003



On Fri, 25 Jul 2003, David Xu wrote:

> 
> ----- Original Message ----- 
> From: "Julian Elischer" <julian at elischer.org>
> To: <deischen at freebsd.org>
> Cc: <threads at freebsd.org>; "David Xu" <davidxu at freebsd.org>; <marcel at xcllnt.net>
> Sent: Friday, July 25, 2003 4:59 AM
> Subject: Re: KSD/TSD take 2 (was: KSE critical regions)
>  to the kernel.
> > 
> 
> userland can always adapt the layout by:
> 
>     struct lib_kse_mailbox {
>         void *TLS_tcb;
>         struct kse_mailbox kmbx;
>     };
> 
> and set base address to lib_kse_mailbox, userland can
> do whatever it wants to do. same thing can be done for
> thread mailbox.
> 
> I don't think too many fields not related to interaction
> between kernel and userland should be pushed into mailbox,
> it is too ugly.

I agree.. as long as we state very strongly that the segment register
points to the TCB and NOT the mailbox, and that the mailbox may not be
the first item in the TCB, then it works ok..



More information about the freebsd-threads mailing list