diff options
Diffstat (limited to 'arch/s390x')
-rw-r--r-- | arch/s390x/pthread_arch.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/s390x/pthread_arch.h b/arch/s390x/pthread_arch.h index 5d22546b..e54fec3f 100644 --- a/arch/s390x/pthread_arch.h +++ b/arch/s390x/pthread_arch.h @@ -1,12 +1,12 @@ -static inline struct pthread *__pthread_self() +static inline uintptr_t __get_tp() { - struct pthread *self; + uintptr_t tp; __asm__ ( "ear %0, %%a0\n" "sllg %0, %0, 32\n" "ear %0, %%a1\n" - : "=r"(self)); - return self; + : "=r"(tp)); + return tp; } #define MC_PC psw.addr |