about summary refs log tree commit diff
path: root/nptl/sysdeps
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-12-07 20:34:18 +0000
committerUlrich Drepper <drepper@redhat.com>2004-12-07 20:34:18 +0000
commit484cc8018b9e27a8fd90f15eaeee132a430131d8 (patch)
treeb33d11a83982fbc4658d97954cdb6d857fd776f5 /nptl/sysdeps
parent2da9a6a1a7e08651875ac0026523ab6747caef2e (diff)
downloadglibc-484cc8018b9e27a8fd90f15eaeee132a430131d8.tar.gz
glibc-484cc8018b9e27a8fd90f15eaeee132a430131d8.tar.xz
glibc-484cc8018b9e27a8fd90f15eaeee132a430131d8.zip
Update.
2004-12-07  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Add support for
	NPTL where the PID is stored at userlevel and needs to be reset when
	CLONE_THREAD is not used.  Restore gp before calling _exit.
Diffstat (limited to 'nptl/sysdeps')
-rw-r--r--nptl/sysdeps/ia64/tcb-offsets.sym1
-rw-r--r--nptl/sysdeps/unix/sysv/linux/ia64/clone2.S2
2 files changed, 3 insertions, 0 deletions
diff --git a/nptl/sysdeps/ia64/tcb-offsets.sym b/nptl/sysdeps/ia64/tcb-offsets.sym
index 09ea70ddc7..f5108e0a9e 100644
--- a/nptl/sysdeps/ia64/tcb-offsets.sym
+++ b/nptl/sysdeps/ia64/tcb-offsets.sym
@@ -2,5 +2,6 @@
 #include <tls.h>
 
 PID			offsetof (struct pthread, pid) - sizeof (struct pthread)
+TID			offsetof (struct pthread, tid) - sizeof (struct pthread)
 MULTIPLE_THREADS_OFFSET offsetof (struct pthread, header.multiple_threads) - sizeof (struct pthread)
 SYSINFO_OFFSET		offsetof (tcbhead_t, private)
diff --git a/nptl/sysdeps/unix/sysv/linux/ia64/clone2.S b/nptl/sysdeps/unix/sysv/linux/ia64/clone2.S
new file mode 100644
index 0000000000..8664056f27
--- /dev/null
+++ b/nptl/sysdeps/unix/sysv/linux/ia64/clone2.S
@@ -0,0 +1,2 @@
+#define RESET_PID
+#include <sysdeps/unix/sysv/linux/ia64/clone2.S>