1
0
Fork 0
golang-modernc-libc/internal/overlay/musl/arch/i386/pthread_arch.h

13 lines
199 B
C
Raw Normal View History

static inline uintptr_t __get_tp();
#ifndef __CCGO__
static inline uintptr_t __get_tp()
{
uintptr_t tp;
__asm__ ("movl %%gs:0,%0" : "=r" (tp) );
return tp;
}
#endif
#define MC_PC gregs[REG_EIP]