summaryrefslogtreecommitdiff
path: root/src/thread/arm/__aeabi_read_tp_c.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/thread/arm/__aeabi_read_tp_c.c')
-rw-r--r--src/thread/arm/__aeabi_read_tp_c.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/thread/arm/__aeabi_read_tp_c.c b/src/thread/arm/__aeabi_read_tp_c.c
new file mode 100644
index 00000000..654bdc57
--- /dev/null
+++ b/src/thread/arm/__aeabi_read_tp_c.c
@@ -0,0 +1,8 @@
+#include "pthread_impl.h"
+#include <stdint.h>
+
+__attribute__((__visibility__("hidden")))
+void *__aeabi_read_tp_c(void)
+{
+ return (void *)((uintptr_t)__pthread_self()-8+sizeof(struct pthread));
+}