X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=arch%2Fx86_64%2Fpthread_arch.h;h=65e880c62e2fa13ec874a7a7092b3c8093d5cbe3;hb=6ad514e4e278f0c3b18eb2db1d45638c9af1c07f;hp=836187f5654ea4087c754c512f3543163e3738ff;hpb=8426a99048261b998a27557cf34f81626ffe9f12;p=musl diff --git a/arch/x86_64/pthread_arch.h b/arch/x86_64/pthread_arch.h index 836187f5..65e880c6 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__ __volatile__ ("movq %%fs:0,%0" : "=r" (self) ); + __asm__ ("mov %%fs:0,%0" : "=r" (self) ); return self; } -#define CANCEL_REG_SP 15 -#define CANCEL_REG_IP 16 +#define TP_ADJ(p) (p) + +#define MC_PC gregs[REG_RIP]