projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix tls access on arm targets before armv6k
[musl]
/
src
/
thread
/
arm
/
__aeabi_read_tp_c.c
diff --git
a/src/thread/arm/__aeabi_read_tp_c.c
b/src/thread/arm/__aeabi_read_tp_c.c
index
654bdc5
..
0c56d61
100644
(file)
--- a/
src/thread/arm/__aeabi_read_tp_c.c
+++ b/
src/thread/arm/__aeabi_read_tp_c.c
@@
-4,5
+4,5
@@
__attribute__((__visibility__("hidden")))
void *__aeabi_read_tp_c(void)
{
- return
(void *)((uintptr_t)__pthread_self()-8+sizeof(struct pthread
));
+ return
TP_ADJ(__pthread_self(
));
}