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