internally, define time64 syscalls on x32 as the existing syscalls
[musl] / arch / x32 / pthread_arch.h
index 033bfd6..f640a1a 100644 (file)
@@ -1,12 +1,14 @@
 static inline struct pthread *__pthread_self()
 {
        struct pthread *self;
-       __asm__ __volatile__ ("mov %%fs:0,%0" : "=r" (self) );
+       __asm__ ("mov %%fs:0,%0" : "=r" (self) );
        return self;
 }
 
 #define TP_ADJ(p) (p)
 
-#define CANCEL_REG_IP 32
+#define MC_PC gregs[REG_RIP]
 
 #define CANARY canary2
+
+#define tls_mod_off_t unsigned long long