1
0
Fork 0
golang-modernc-libc/internal/overlay/musl/arch/i386/pthread_arch.h
Daniel Baumann 32b8eb3fd7
Adding upstream version 1.65.7.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2025-05-19 21:29:57 +02:00

12 lines
199 B
C

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]