about summary refs log tree commit diff
path: root/nptl/sysdeps/sh
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-03-29 01:06:39 +0000
committerUlrich Drepper <drepper@redhat.com>2003-03-29 01:06:39 +0000
commit10e717a20778341a2e8c7d11e3cb1cc90e943602 (patch)
tree4273107d61179c7accced7d7539bb6ea6b8146c4 /nptl/sysdeps/sh
parentf0248ca59ce89cd5191553b58ce74863f3af6f24 (diff)
downloadglibc-10e717a20778341a2e8c7d11e3cb1cc90e943602.tar.gz
glibc-10e717a20778341a2e8c7d11e3cb1cc90e943602.tar.xz
glibc-10e717a20778341a2e8c7d11e3cb1cc90e943602.zip
Include nptl/descr.h after the definition of TLS_DTV_AT_TP. (INSTALL_DTV): Add parens. (THREAD_GETMEM, THREAD_GETMEM_NC, THREAD_SETMEM, THREAD_SETMEM_NC): Use passed descr instead of THREAD_SELF.
Diffstat (limited to 'nptl/sysdeps/sh')
-rw-r--r--nptl/sysdeps/sh/tls.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/nptl/sysdeps/sh/tls.h b/nptl/sysdeps/sh/tls.h
index 9c268d4d97..1e27b987e0 100644
--- a/nptl/sysdeps/sh/tls.h
+++ b/nptl/sysdeps/sh/tls.h
@@ -59,9 +59,6 @@ typedef struct
 /* Get system call information.  */
 # include <sysdep.h>
 
-/* Get the thread descriptor definition.  */
-# include <nptl/descr.h>
-
 /* This is the size of the initial TCB.  */
 # define TLS_INIT_TCB_SIZE sizeof (tcbhead_t)
 
@@ -80,11 +77,13 @@ typedef struct
 /* The TLS blocks start right after the TCB.  */
 # define TLS_DTV_AT_TP	1
 
+/* Get the thread descriptor definition.  */
+# include <nptl/descr.h>
 
 /* Install the dtv pointer.  The pointer passed is to the element with
    index -1 which contain the length.  */
 # define INSTALL_DTV(tcbp, dtvp) \
-  ((tcbhead_t *) (tcbp))->dtv = dtvp + 1
+  ((tcbhead_t *) (tcbp))->dtv = (dtvp) + 1
 
 /* Install new dtv for current thread.  */
 # define INSTALL_NEW_DTV(dtv) \
@@ -119,18 +118,18 @@ typedef struct
      __self - 1;})
 
 /* Read member of the thread descriptor directly.  */
-# define THREAD_GETMEM(descr, member) ((THREAD_SELF)->member)
+# define THREAD_GETMEM(descr, member) (descr->member)
 
 /* Same as THREAD_GETMEM, but the member offset can be non-constant.  */
-# define THREAD_GETMEM_NC(descr, member, idx) ((THREAD_SELF)->member[idx])
+# define THREAD_GETMEM_NC(descr, member, idx) (descr->member[idx])
 
 /* Set member of the thread descriptor directly.  */
 # define THREAD_SETMEM(descr, member, value) \
-    (THREAD_SELF)->member = (value)
+    descr->member = (value)
 
 /* Same as THREAD_SETMEM, but the member offset can be non-constant.  */
 # define THREAD_SETMEM_NC(descr, member, idx, value) \
-    (THREAD_SELF)->member[idx] = (value)
+    descr->member[idx] = (value)
 
 #endif /* __ASSEMBLER__ */