repo.or.cz
/
musl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
rework arm atomic/tp backends to be thumb-compatible and fdpic-ready
[musl.git]
/
src
/
thread
/
arm
/
__aeabi_read_tp_c.c
blob
654bdc577e5b70ea07044b33252e2d8f09aeb22e
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
}