X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=arch%2Fx86_64%2Fpthread_arch.h;h=836187f5654ea4087c754c512f3543163e3738ff;hb=4221f154ff29ab0d6be1e7beaa5ea2d1731bc58e;hp=af7ae86e2b72f726b81671f120a3cb3d2591add9;hpb=b470030f839a375e5030ec9d44903ef7581c15a2;p=musl diff --git a/arch/x86_64/pthread_arch.h b/arch/x86_64/pthread_arch.h index af7ae86e..836187f5 100644 --- a/arch/x86_64/pthread_arch.h +++ b/arch/x86_64/pthread_arch.h @@ -1,9 +1,9 @@ static inline struct pthread *__pthread_self() { struct pthread *self; - __asm__ ("movq %%fs:0,%0" : "=r" (self) ); + __asm__ __volatile__ ("movq %%fs:0,%0" : "=r" (self) ); return self; } -#define PC_AT_SYS(c) \ - (*(uint16_t *)(((ucontext_t *)(c))->uc_mcontext.__gregs[16])==0x050f) +#define CANCEL_REG_SP 15 +#define CANCEL_REG_IP 16