PowerPC64 TLS ABI

Richard Henderson rth@twiddle.net
Sat Jan 18 01:37:00 GMT 2003


On Sat, Jan 18, 2003 at 11:02:53AM +1030, Alan Modra wrote:
> I suppose there's really no
> reason we couldn't use an offset tp with variant I, and what's more,
> the offset would be the same as for dtv.  ie. r13 - 0x8000 would point
> at TCB.  I like it!

Hmm.  This isn't a bad idea at all.  Perhaps I should
adopt it for Alpha as well.  It's not too late...

At the moment Jakub has arranged for LinuxThreads to
have its _pthread_descr at the negative offsets from
the TP.  We can either continue with that (and have to
use an additional addis to access it), or we can use
the second word of the TCB to point to it.


r~



More information about the Binutils mailing list