summaryrefslogtreecommitdiff
path: root/sysdeps/microblaze
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/microblaze')
-rw-r--r--sysdeps/microblaze/nptl/tls.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/sysdeps/microblaze/nptl/tls.h b/sysdeps/microblaze/nptl/tls.h
index fb4a71a8c3..171a745db9 100644
--- a/sysdeps/microblaze/nptl/tls.h
+++ b/sysdeps/microblaze/nptl/tls.h
@@ -59,14 +59,9 @@ typedef struct
void *private;
} tcbhead_t;
-static inline void *__microblaze_get_thread_area (void)
-{
- register void * volatile __microblaze_thread_area asm ("r21");
- return (void *) __microblaze_thread_area;
-}
-
-# define READ_THREAD_POINTER() \
- ({ __microblaze_get_thread_area(); })
+#define READ_THREAD_POINTER() \
+ ({ register void *__microblaze_thread_area asm ("r21"); \
+ __microblaze_thread_area; })
/* This is the size of the initial TCB. */
# define TLS_INIT_TCB_SIZE sizeof (tcbhead_t)