fix arm __tlsdesc_dynamic when built as thumb code without __ARM_ARCH>=5
[musl] / arch / powerpc / pthread_arch.h
index 79e5a09..ae0f28d 100644 (file)
@@ -1,12 +1,7 @@
 static inline struct pthread *__pthread_self()
 {
-#ifdef __clang__
-       char *tp;
-       __asm__ __volatile__ ("mr %0, 2" : "=r"(tp) : : );
-#else
        register char *tp __asm__("r2");
-       __asm__ __volatile__ ("" : "=r" (tp) );
-#endif
+       __asm__ ("" : "=r" (tp) );
        return (pthread_t)(tp - 0x7000 - sizeof(struct pthread));
 }