summaryrefslogtreecommitdiff
path: root/src/thread/__tls_get_addr.c
blob: 19524fe07671f8fce6e27a0243883b7e45ce5cb4 (plain)
1
2
3
4
5
6
7
#include "pthread_impl.h"

void *__tls_get_addr(tls_mod_off_t *v)
{
	pthread_t self = __pthread_self();
	return (void *)(self->dtv[v[0]] + v[1]);
}