X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=arch%2Fx86_64%2Fpthread_arch.h;h=77c8387c57b698118bbd1af0da452274ca0d710f;hb=1c8eb8bad791fe9d01d0d4ab77882db634fa933d;hp=af7ae86e2b72f726b81671f120a3cb3d2591add9;hpb=b470030f839a375e5030ec9d44903ef7581c15a2;p=musl diff --git a/arch/x86_64/pthread_arch.h b/arch/x86_64/pthread_arch.h index af7ae86e..77c8387c 100644 --- a/arch/x86_64/pthread_arch.h +++ b/arch/x86_64/pthread_arch.h @@ -1,9 +1,10 @@ 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 TP_ADJ(p) (p) + +#define CANCEL_REG_IP 16