]> git.proxmox.com Git - wasi-libc.git/blobdiff - libc-top-half/musl/arch/m68k/pthread_arch.h
Update to musl 1.2.2.
[wasi-libc.git] / libc-top-half / musl / arch / m68k / pthread_arch.h
index 02d5b8a089f77f61050c5e3291bda3f5f07a6c5d..5bea4e1adc1090cd32c1d9ac10d50cb6242b629c 100644 (file)
@@ -1,13 +1,12 @@
-static inline struct pthread *__pthread_self()
+static inline uintptr_t __get_tp()
 {
-       uintptr_t tp = __syscall(SYS_get_thread_area);
-       return (pthread_t)(tp - 0x7000 - sizeof(struct pthread));
+       return __syscall(SYS_get_thread_area);
 }
 
 #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 gregs[R_PC]