diff options
Diffstat (limited to 'arch/microblaze')
-rw-r--r-- | arch/microblaze/pthread_arch.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/microblaze/pthread_arch.h b/arch/microblaze/pthread_arch.h index c327f4eb..ff26624e 100644 --- a/arch/microblaze/pthread_arch.h +++ b/arch/microblaze/pthread_arch.h @@ -1,8 +1,8 @@ -static inline struct pthread *__pthread_self() +static inline uintptr_t __get_tp() { - struct pthread *self; - __asm__ ("ori %0, r21, 0" : "=r" (self) ); - return self; + uintptr_t tp; + __asm__ ("ori %0, r21, 0" : "=r" (tp) ); + return tp; } #define MC_PC regs.pc |