For the initial thread, rtld has already created the TCB and TLS storage.
authorJoerg Sonnenberger <joerg@dragonflybsd.org>
Thu, 28 Apr 2005 18:22:13 +0000 (18:22 +0000)
committerJoerg Sonnenberger <joerg@dragonflybsd.org>
Thu, 28 Apr 2005 18:22:13 +0000 (18:22 +0000)
commitec54703bce74ac79735fd06599646267a98aaf22
tree1cec4ad74c9795dc89e393f3882f2d8a0802c556
parent40b6c3c5dc5c8ed22543d93442a8c56b881b3778
For the initial thread, rtld has already created the TCB and TLS storage.
Use this. For all other threads allocate it. The TCB itself must not be
NULL, so we don't have to check for it.
lib/libthread_xu/arch/amd64/amd64/pthread_md.c
lib/libthread_xu/arch/i386/i386/pthread_md.c