[roland/tls-init] S390: Define TLS_DEFINE_INIT_TP

Message ID 20140609205845.EC8F52C39AC@topped-with-meat.com
State Committed
Headers

Commit Message

Roland McGrath June 9, 2014, 8:58 p.m. UTC
  Not tested at all, but this should not change anything.

OK?

Thanks,
Roland


	* nptl/sysdeps/s390/tls.h (TLS_DEFINE_INIT_TP): New macro.
  

Comments

Stefan Liebler June 10, 2014, 11:41 a.m. UTC | #1
On 06/09/2014 10:58 PM, Roland McGrath wrote:
> Not tested at all, but this should not change anything.
>
> OK?
>
> Thanks,
> Roland
>
>
> 	* nptl/sysdeps/s390/tls.h (TLS_DEFINE_INIT_TP): New macro.
>
> --- a/nptl/sysdeps/s390/tls.h
> +++ b/nptl/sysdeps/s390/tls.h
> @@ -133,6 +133,9 @@ typedef struct
>       NULL;								      \
>     })
>
> +/* Value passed to 'clone' for initialization of the thread register.  */
> +# define TLS_DEFINE_INIT_TP(tp, pd) void *tp = (pd)
> +
>   /* Return the address of the dtv for the current thread.  */
>   #  define THREAD_DTV() \
>     (((tcbhead_t *) __builtin_thread_pointer ())->dtv)
>

OK.
(and no new testsuite-failures on s390/s390x)
  
Roland McGrath June 11, 2014, 7:28 p.m. UTC | #2
Committed.

Thanks,
Roland
  

Patch

--- a/nptl/sysdeps/s390/tls.h
+++ b/nptl/sysdeps/s390/tls.h
@@ -133,6 +133,9 @@  typedef struct
     NULL;								      \
   })
 
+/* Value passed to 'clone' for initialization of the thread register.  */
+# define TLS_DEFINE_INIT_TP(tp, pd) void *tp = (pd)
+
 /* Return the address of the dtv for the current thread.  */
 #  define THREAD_DTV() \
   (((tcbhead_t *) __builtin_thread_pointer ())->dtv)