X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=arch%2Fi386%2Fpthread_arch.h;h=1c06c7641df683b9ffe14c0e91f0b1da192abbe0;hp=64d75cbcc201c8b08f4be1548c03b2287e178d1a;hb=3bb167b33818b3ac569f73a2ff82ff1ab3b04c4a;hpb=b470030f839a375e5030ec9d44903ef7581c15a2 diff --git a/arch/i386/pthread_arch.h b/arch/i386/pthread_arch.h index 64d75cbc..1c06c764 100644 --- a/arch/i386/pthread_arch.h +++ b/arch/i386/pthread_arch.h @@ -1,9 +1,10 @@ static inline struct pthread *__pthread_self() { struct pthread *self; - __asm__ ("movl %%gs:0,%0" : "=r" (self) ); + __asm__ __volatile__ ("movl %%gs:0,%0" : "=r" (self) ); return self; } -#define PC_AT_SYS(c) \ - (*(uint16_t *)(((ucontext_t *)(c))->uc_mcontext.__gregs[14])==0x80cd) +#define TP_ADJ(p) (p) + +#define CANCEL_REG_IP 14