1 #include "libc.h" 2 #include "threads_impl.h" 3 #include <stddef.h> 4 __tls_get_addr(size_t * v)5void* __tls_get_addr(size_t* v) { 6 thrd_t self = __thrd_current(); 7 if (v[0] <= (size_t)self->head.dtv[0]) 8 return (char*)self->head.dtv[v[0]] + v[1] + DTP_OFFSET; 9 return __tls_get_new(v); 10 } 11