rework arm atomic/tp backends to be thumb-compatible and fdpic-ready
[musl] / src / thread / arm / __aeabi_read_tp_c.c
1 #include "pthread_impl.h"
2 #include <stdint.h>
3
4 __attribute__((__visibility__("hidden")))
5 void *__aeabi_read_tp_c(void)
6 {
7         return (void *)((uintptr_t)__pthread_self()-8+sizeof(struct pthread));
8 }