remove use of endian.h from arch reloc.h headers, clean up
[musl] / arch / sh / pthread_arch.h
index 41fefac..3ee9c1a 100644 (file)
@@ -1,7 +1,7 @@
 static inline struct pthread *__pthread_self()
 {
        char *self;
-       __asm__ __volatile__ ("stc gbr,%0" : "=r" (self) );
+       __asm__ ("stc gbr,%0" : "=r" (self) );
        return (struct pthread *) (self - sizeof(struct pthread));
 }
 
@@ -10,3 +10,8 @@ static inline struct pthread *__pthread_self()
 #define TP_ADJ(p) ((char *)(p) + sizeof(struct pthread))
 
 #define MC_PC sc_pc
+
+#ifdef __FDPIC__
+#define MC_GOT sc_regs[12]
+#define CANCEL_GOT (*(uintptr_t *)((char *)__syscall_cp_asm+sizeof(uintptr_t)))
+#endif