fix broken thread list unlocking after fork
[musl] / arch / microblaze / pthread_arch.h
index 08d1ba7..ff26624 100644 (file)
@@ -1,10 +1,8 @@
-static inline struct pthread *__pthread_self()
+static inline uintptr_t __get_tp()
 {
-       struct pthread *self;
-       __asm__ __volatile__ ("ori %0, r21, 0" : "=r" (self) );
-       return self;
+       uintptr_t tp;
+       __asm__ ("ori %0, r21, 0" : "=r" (tp) );
+       return tp;
 }
 
-#define TP_ADJ(p) (p)
-
 #define MC_PC regs.pc