diff options
Diffstat (limited to 'arch/x32/pthread_arch.h')
-rw-r--r-- | arch/x32/pthread_arch.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/x32/pthread_arch.h b/arch/x32/pthread_arch.h index fa452839..6e2495da 100644 --- a/arch/x32/pthread_arch.h +++ b/arch/x32/pthread_arch.h @@ -1,8 +1,8 @@ -static inline struct pthread *__pthread_self() +static inline uintptr_t __get_tp() { - struct pthread *self; - __asm__ ("mov %%fs:0,%0" : "=r" (self) ); - return self; + uintptr_t tp; + __asm__ ("mov %%fs:0,%0" : "=r" (tp) ); + return tp; } #define MC_PC gregs[REG_RIP] |