[PATCH] PPC linuxthreads tls.h fix

Richard Henderson rth@twiddle.net
Sat Mar 1 02:55:00 GMT 2003


On Fri, Feb 28, 2003 at 12:00:26PM +1100, Paul Mackerras wrote:
> Steven Munroe writes:
> I would like a multiple_threads field in the tcbhead_t in the TLS case
> for ppc32 as well, since it would make the check for multiple threads
> fast and easy.  I will talk to Alan about expanding the TCB to 16
> bytes on ppc32 to accommodate that.

This, I think is a mistake.  There's a difference between
the "tcbhead_t", i.e. the dtv/reserved double word, and the
thread control block used by the thread library.

We've already reserved offsets [-0x8000,-0x7010] from TP
for the private use of the thread library.  Seems to me that
bit o data can go in there somewhere.


r~



More information about the Libc-alpha mailing list