projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
deduplicate TP_ADJ logic out of each arch, replace with TP_OFFSET
[musl]
/
arch
/
mips
/
pthread_arch.h
diff --git
a/arch/mips/pthread_arch.h
b/arch/mips/pthread_arch.h
index
1e7839e
..
c22eb34
100644
(file)
--- a/
arch/mips/pthread_arch.h
+++ b/
arch/mips/pthread_arch.h
@@
-12,8
+12,8
@@
static inline struct pthread *__pthread_self()
#define TLS_ABOVE_TP
#define GAP_ABOVE_TP 0
-#define TP_ADJ(p) ((char *)(p) + sizeof(struct pthread) + 0x7000)
+#define TP_OFFSET 0x7000
#define DTP_OFFSET 0x8000
#define MC_PC pc