]> git.proxmox.com Git - wasi-libc.git/blame - libc-top-half/musl/arch/x86_64/pthread_arch.h
Update to musl 1.2.2.
[wasi-libc.git] / libc-top-half / musl / arch / x86_64 / pthread_arch.h
CommitLineData
322bd4ff 1static inline uintptr_t __get_tp()
320054e8 2{
322bd4ff
DG
3 uintptr_t tp;
4 __asm__ ("mov %%fs:0,%0" : "=r" (tp) );
5 return tp;
320054e8
DG
6}
7
320054e8 8#define MC_PC gregs[REG_RIP]