diff options
author | Andreas Schwab <schwab@suse.de> | 2014-05-13 16:40:41 +0200 |
---|---|---|
committer | Andreas Schwab <schwab@suse.de> | 2014-05-27 14:48:46 +0200 |
commit | 774f928582fcfefb726f115772c001043aefa01c (patch) | |
tree | 25a1d36a397a74b00e2438caf52dfa5dfa0d3124 /nptl/sysdeps/i386 | |
parent | 36ffe7398af5e5daa5745c64a15226d864378738 (diff) | |
download | glibc-774f928582fcfefb726f115772c001043aefa01c.tar.gz glibc-774f928582fcfefb726f115772c001043aefa01c.tar.xz glibc-774f928582fcfefb726f115772c001043aefa01c.zip |
Remove second argument from TLS_INIT_TP macro
Diffstat (limited to 'nptl/sysdeps/i386')
-rw-r--r-- | nptl/sysdeps/i386/tls.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/nptl/sysdeps/i386/tls.h b/nptl/sysdeps/i386/tls.h index 4183ee82b8..2f8d11def1 100644 --- a/nptl/sysdeps/i386/tls.h +++ b/nptl/sysdeps/i386/tls.h @@ -195,7 +195,7 @@ union user_desc_init /* Code to initially initialize the thread pointer. This might need special attention since 'errno' is not yet available and if the operation can cause a failure 'errno' must not be touched. */ -# define TLS_INIT_TP(thrdescr, secondcall) \ +# define TLS_INIT_TP(thrdescr) \ ({ void *_thrdescr = (thrdescr); \ tcbhead_t *_head = _thrdescr; \ union user_desc_init _segdescr; \ @@ -208,10 +208,7 @@ union user_desc_init INIT_SYSINFO; \ \ /* The 'entry_number' field. Let the kernel pick a value. */ \ - if (secondcall) \ - _segdescr.vals[0] = TLS_GET_GS () >> 3; \ - else \ - _segdescr.vals[0] = -1; \ + _segdescr.vals[0] = -1; \ /* The 'base_addr' field. Pointer to the TCB. */ \ _segdescr.vals[1] = (unsigned long int) _thrdescr; \ /* The 'limit' field. We use 4GB which is 0xfffff pages. */ \ |