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