about summary refs log tree commit diff
path: root/arch/m68k/pthread_arch.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/m68k/pthread_arch.h')
-rw-r--r--arch/m68k/pthread_arch.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/m68k/pthread_arch.h b/arch/m68k/pthread_arch.h
index 7c9990c2..5bea4e1a 100644
--- a/arch/m68k/pthread_arch.h
+++ b/arch/m68k/pthread_arch.h
@@ -1,7 +1,6 @@
-static inline struct pthread *__pthread_self()
+static inline uintptr_t __get_tp()
 {
-	uintptr_t tp = __syscall(SYS_get_thread_area);
-	return (pthread_t)(tp - 0x7000 - sizeof(struct pthread));
+	return __syscall(SYS_get_thread_area);
 }
 
 #define TLS_ABOVE_TP