summaryrefslogtreecommitdiff
path: root/nptl/sysdeps/ia64/tcb-offsets.sym
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2004-12-07 14:20:59 +0000
committerJakub Jelinek <jakub@redhat.com>2004-12-07 14:20:59 +0000
commit94db64842447989c08e55d9c78328a5b4c544241 (patch)
treefd0bac340acc891d0db8299399b5cdbdc7eed190 /nptl/sysdeps/ia64/tcb-offsets.sym
parent37756a838922d080448793aa5ab5e90c5aba78c1 (diff)
* 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. nptl/ * sysdeps/ia64/tcb-offsets.sym (TID): Add. * sysdeps/unix/sysv/linux/ia64/clone2.S: New file. * Makefile (tests): Add tst-getpid2.c. * tst-getpid1.c (TEST_CLONE_FLAGS): Define. (do_test): Use it. Use __clone2 instead of clone on ia64. * tst-getpid2.c: New test.
Diffstat (limited to 'nptl/sysdeps/ia64/tcb-offsets.sym')
-rw-r--r--nptl/sysdeps/ia64/tcb-offsets.sym1
1 files changed, 1 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)