X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=arch%2Fx86_64%2Fpthread_arch.h;h=77c8387c57b698118bbd1af0da452274ca0d710f;hp=c424493a350dd7420dbf5845b2f9462b56774a9d;hb=b5a527f9ff47b0f4b32c606e385a0c27d861a475;hpb=feee98903cd8119d9a3db62589246a940f44a9f5 diff --git a/arch/x86_64/pthread_arch.h b/arch/x86_64/pthread_arch.h index c424493a..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 CANCEL_REG_SP 15 +#define TP_ADJ(p) (p) + #define CANCEL_REG_IP 16