make thread-pointer-loading asm non-volatile
[musl.git] / arch / x86_64 / pthread_arch.h
blob65e880c62e2fa13ec874a7a7092b3c8093d5cbe3
1 static inline struct pthread *__pthread_self()
3 struct pthread *self;
4 __asm__ ("mov %%fs:0,%0" : "=r" (self) );
5 return self;
8 #define TP_ADJ(p) (p)
10 #define MC_PC gregs[REG_RIP]