Rearranging kse mailbox

Marcel Moolenaar marcel at xcllnt.net
Fri Jul 18 16:23:09 PDT 2003


On Fri, Jul 18, 2003 at 06:40:07PM -0400, Daniel Eischen wrote:
> > Note that the extra level of indirection on ia64 can be avoided if
> > we put the thread control structure at a negative offset from TP.
> > The layout would be something like:
> > 
> > -...              0            8     16      ...+
> > [thread structure][DTV pointer][free][static TLS]
> > 		  ^
> > 		  TP
> 
> Can we make this work so that we are not limited to
> 8192 (or whatever max user LDTs are) threads on i386?

The layout may be specific to ia64. I don't think we should try to
unify too much across platforms.

As for the LDT limit: We could keep %gs constant and change the LDT
entry on a thread switch. That way we only use 1 LDT entry...

-- 
 Marcel Moolenaar	  USPA: A-39004		 marcel at xcllnt.net


More information about the freebsd-threads mailing list