musl/arch/x32/pthread_arch.h

13 lines
199 B
C
Raw Normal View History

static inline uintptr_t __get_tp()
2014-01-07 21:43:34 +00:00
{
uintptr_t tp;
__asm__ ("mov %%fs:0,%0" : "=r" (tp) );
return tp;
2014-01-07 21:43:34 +00:00
}
#define MC_PC gregs[REG_RIP]
#define CANARY_PAD
#define tls_mod_off_t unsigned long long