From f23673fc71f75f509f4b4c0080fb975a939a462f Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 15 Dec 2004 17:45:55 +0000 Subject: Update. 2004-12-15 Jakub Jelinek * nis/nis_domain_of_r.c (nis_domain_of_r): Use libnsl_hidden_def, not libnsl_hidden_proto. * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Add support for NPTL where the PID is stored at userlevel and needs to be reset when CLONE_THREAD is not used. * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone): Save and restore r2 around call to fn. --- nptl/sysdeps/s390/tcb-offsets.sym | 1 + nptl/sysdeps/unix/sysv/linux/s390/s390-32/clone.S | 2 ++ nptl/sysdeps/unix/sysv/linux/s390/s390-64/clone.S | 2 ++ 3 files changed, 5 insertions(+) create mode 100644 nptl/sysdeps/unix/sysv/linux/s390/s390-32/clone.S create mode 100644 nptl/sysdeps/unix/sysv/linux/s390/s390-64/clone.S (limited to 'nptl/sysdeps') diff --git a/nptl/sysdeps/s390/tcb-offsets.sym b/nptl/sysdeps/s390/tcb-offsets.sym index c6e230a315..237f975b25 100644 --- a/nptl/sysdeps/s390/tcb-offsets.sym +++ b/nptl/sysdeps/s390/tcb-offsets.sym @@ -3,3 +3,4 @@ MULTIPLE_THREADS_OFFSET offsetof (tcbhead_t, multiple_threads) PID offsetof (struct pthread, pid) +TID offsetof (struct pthread, tid) diff --git a/nptl/sysdeps/unix/sysv/linux/s390/s390-32/clone.S b/nptl/sysdeps/unix/sysv/linux/s390/s390-32/clone.S new file mode 100644 index 0000000000..682f94dae8 --- /dev/null +++ b/nptl/sysdeps/unix/sysv/linux/s390/s390-32/clone.S @@ -0,0 +1,2 @@ +#define RESET_PID +#include diff --git a/nptl/sysdeps/unix/sysv/linux/s390/s390-64/clone.S b/nptl/sysdeps/unix/sysv/linux/s390/s390-64/clone.S new file mode 100644 index 0000000000..87ee2e1846 --- /dev/null +++ b/nptl/sysdeps/unix/sysv/linux/s390/s390-64/clone.S @@ -0,0 +1,2 @@ +#define RESET_PID +#include -- cgit 1.4.1