X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=arch%2Fx32%2Fpthread_arch.h;h=f640a1a1570903575ef960b32541e449d0b35b1d;hb=d149e69c02eb558114f20ea718810e95538a3b2f;hp=23e10516000f861411006c22098c867dca5558f3;hpb=7fe273b2c163e4594221375120c6ce209a783262;p=musl diff --git a/arch/x32/pthread_arch.h b/arch/x32/pthread_arch.h index 23e10516..f640a1a1 100644 --- a/arch/x32/pthread_arch.h +++ b/arch/x32/pthread_arch.h @@ -1,10 +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