diff options
Diffstat (limited to 'libc-top-half/musl/arch/x32/pthread_arch.h')
-rw-r--r-- | libc-top-half/musl/arch/x32/pthread_arch.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libc-top-half/musl/arch/x32/pthread_arch.h b/libc-top-half/musl/arch/x32/pthread_arch.h new file mode 100644 index 0000000..c1e7716 --- /dev/null +++ b/libc-top-half/musl/arch/x32/pthread_arch.h @@ -0,0 +1,12 @@ +static inline uintptr_t __get_tp() +{ + uintptr_t tp; + __asm__ ("mov %%fs:0,%0" : "=r" (tp) ); + return tp; +} + +#define MC_PC gregs[REG_RIP] + +#define CANARY_PAD + +#define tls_mod_off_t unsigned long long |