summaryrefslogtreecommitdiff
path: root/libc/nptl
diff options
context:
space:
mode:
authorjoseph <joseph@7b3dc134-2b1b-0410-93df-9e9f96275f8d>2013-05-18 00:51:47 +0000
committerjoseph <joseph@7b3dc134-2b1b-0410-93df-9e9f96275f8d>2013-05-18 00:51:47 +0000
commiteab7f6089510455a9b26643c64da331749a15650 (patch)
treee069c5f33da7c0cffbb68f47ec07b1b10b6789e4 /libc/nptl
parentf9b341f7c8c64a0df8707b3cf29b425a25a52d12 (diff)
Merge changes between r22954 and r23097 from /fsf/trunk.
git-svn-id: svn://svn.eglibc.org/trunk@23098 7b3dc134-2b1b-0410-93df-9e9f96275f8d
Diffstat (limited to 'libc/nptl')
-rw-r--r--libc/nptl/ChangeLog16
-rw-r--r--libc/nptl/pthread_create.c1
-rw-r--r--libc/nptl/sysdeps/i386/tls.h4
-rw-r--r--libc/nptl/sysdeps/pthread/createthread.c1
-rw-r--r--libc/nptl/sysdeps/x86_64/tls.h4
-rw-r--r--libc/nptl/tst-mutex8.c14
6 files changed, 38 insertions, 2 deletions
diff --git a/libc/nptl/ChangeLog b/libc/nptl/ChangeLog
index 6cfb54756..6e5ca4cfa 100644
--- a/libc/nptl/ChangeLog
+++ b/libc/nptl/ChangeLog
@@ -1,3 +1,19 @@
+2013-05-16 Ryan S. Arnold <rsa@linux.vnet.ibm.com>
+
+ * pthread_create.c: Add missing #include <stdint.h> due to uint64_t or
+ uint32_t usage.
+ * sysdeps/pthread/createthread.c: Likewise.
+
+2013-05-14 Andreas Jaeger <aj@suse.de>
+
+ [BZ #10686]
+ * sysdeps/x86_64/tls.h (struct tcbhead_t): Add __private_ss field.
+ * sysdeps/i386/tls.h (struct tcbhead_t): Likewise.
+
+2013-05-09 Andi Kleen <ak@linux.intel.com>
+
+ * tst-mutex8.c (do_test): Check for ENABLE_PI.
+
2013-04-22 Siddhesh Poyarekar <siddhesh@redhat.com>
* pthreadP.h (check_sched_policy_attr): New inline function.
diff --git a/libc/nptl/pthread_create.c b/libc/nptl/pthread_create.c
index 81bb900e7..2e108d019 100644
--- a/libc/nptl/pthread_create.c
+++ b/libc/nptl/pthread_create.c
@@ -21,6 +21,7 @@
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
+#include <stdint.h>
#include "pthreadP.h"
#include <hp-timing.h>
#include <ldsodefs.h>
diff --git a/libc/nptl/sysdeps/i386/tls.h b/libc/nptl/sysdeps/i386/tls.h
index 1405f6039..3d18b1de7 100644
--- a/libc/nptl/sysdeps/i386/tls.h
+++ b/libc/nptl/sysdeps/i386/tls.h
@@ -59,7 +59,9 @@ typedef struct
int __unused1;
#endif
/* Reservation of some values for the TM ABI. */
- void *__private_tm[5];
+ void *__private_tm[4];
+ /* GCC split stack support. */
+ void *__private_ss;
} tcbhead_t;
# define TLS_MULTIPLE_THREADS_IN_TCB 1
diff --git a/libc/nptl/sysdeps/pthread/createthread.c b/libc/nptl/sysdeps/pthread/createthread.c
index b0f686d25..d24136b0e 100644
--- a/libc/nptl/sysdeps/pthread/createthread.c
+++ b/libc/nptl/sysdeps/pthread/createthread.c
@@ -23,6 +23,7 @@
#include <atomic.h>
#include <ldsodefs.h>
#include <tls.h>
+#include <stdint.h>
#include "kernel-features.h"
diff --git a/libc/nptl/sysdeps/x86_64/tls.h b/libc/nptl/sysdeps/x86_64/tls.h
index 3d67dbc75..61df1af2b 100644
--- a/libc/nptl/sysdeps/x86_64/tls.h
+++ b/libc/nptl/sysdeps/x86_64/tls.h
@@ -69,7 +69,9 @@ typedef struct
# endif
int rtld_must_xmm_save;
/* Reservation of some values for the TM ABI. */
- void *__private_tm[5];
+ void *__private_tm[4];
+ /* GCC split stack support. */
+ void *__private_ss;
long int __unused2;
/* Have space for the post-AVX register size. */
__128bits rtld_savespace_sse[8][4] __attribute__ ((aligned (32)));
diff --git a/libc/nptl/tst-mutex8.c b/libc/nptl/tst-mutex8.c
index 72dc9d499..2089c50d4 100644
--- a/libc/nptl/tst-mutex8.c
+++ b/libc/nptl/tst-mutex8.c
@@ -333,6 +333,13 @@ do_test (void)
puts ("1st mutexattr_settype failed");
return 1;
}
+#ifdef ENABLE_PI
+ if (pthread_mutexattr_setprotocol (&ma, PTHREAD_PRIO_INHERIT))
+ {
+ puts ("1st pthread_mutexattr_setprotocol failed");
+ return 1;
+ }
+#endif
puts ("check recursive mutex");
res |= check_type ("recursive", &ma);
if (pthread_mutexattr_destroy (&ma) != 0)
@@ -351,6 +358,13 @@ do_test (void)
puts ("2nd mutexattr_settype failed");
return 1;
}
+#ifdef ENABLE_PI
+ if (pthread_mutexattr_setprotocol (&ma, PTHREAD_PRIO_INHERIT))
+ {
+ puts ("2nd pthread_mutexattr_setprotocol failed");
+ return 1;
+ }
+#endif
puts ("check error-checking mutex");
res |= check_type ("error-checking", &ma);
if (pthread_mutexattr_destroy (&ma) != 0)