Add Changelog ...
[glibc.git] / sysdeps / hppa / nptl / tcb-offsets.sym
blobf3cc82621ac60f725952e3e52cc79c7b30b4edc9
1 #include <sysdep.h>
2 #include <tls.h>
4 RESULT                  offsetof (struct pthread, result)
5 TID                     offsetof (struct pthread, tid)
6 PID                     offsetof (struct pthread, pid)
7 CANCELHANDLING          offsetof (struct pthread, cancelhandling)
8 CLEANUP_JMP_BUF         offsetof (struct pthread, cleanup_jmp_buf)
9 MULTIPLE_THREADS_OFFSET offsetof (struct pthread, header.multiple_threads)
10 TLS_PRE_TCB_SIZE        sizeof (struct pthread)
11 MUTEX_FUTEX             offsetof (pthread_mutex_t, __data.__lock)
13 -- Use a thread_offset when working with asm to make things simpler
14 -- This way we get the offset of a member in the struct pthread that
15 -- preceeds the thread pointer (which points to the dtv).
16 #define thread_offsetof(mem)    (unsigned int)(offsetof(struct pthread, mem) - sizeof(struct pthread))
17 PID_THREAD_OFFSET               thread_offsetof (pid)
18 TID_THREAD_OFFSET               thread_offsetof (tid)
19 MULTIPLE_THREADS_THREAD_OFFSET  thread_offsetof (header.multiple_threads)