For the initial thread, rtld has already created the TCB and TLS storage.
commit3fd8c1675b3b974616fe13b5c7b18b2e602dbd97
authorJoerg Sonnenberger <joerg@dragonflybsd.org>
Thu, 28 Apr 2005 18:22:13 +0000 (28 18:22 +0000)
committerJoerg Sonnenberger <joerg@dragonflybsd.org>
Thu, 28 Apr 2005 18:22:13 +0000 (28 18:22 +0000)
treecb98cb9d491dfaf30bd790b8838112d0fd8c4641
parent44a3d9c267ccedf969572989f16adb7a6f7e303f
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