]> git.ipfire.org Git - thirdparty/glibc.git/blame - nptl/sysdeps/powerpc/tcb-offsets.sym
2.5-18.1
[thirdparty/glibc.git] / nptl / sysdeps / powerpc / tcb-offsets.sym
CommitLineData
f3c13160
RM
1#include <sysdep.h>
2#include <tls.h>
3
468777e1
UD
4--
5
6-- Abuse tls.h macros to derive offsets relative to the thread register.
7# undef __thread_register
8# define __thread_register ((void *) 0)
0ecb606c
JJ
9# define thread_offsetof(mem) ((ptrdiff_t) THREAD_SELF + offsetof (struct pthread, mem))
10
468777e1
UD
11
12#if TLS_MULTIPLE_THREADS_IN_TCB
13MULTIPLE_THREADS_OFFSET thread_offsetof (header.multiple_threads)
14#endif
d682a515 15PID thread_offsetof (pid)
1f9d7c27 16TID thread_offsetof (tid)
0ecb606c 17POINTER_GUARD (offsetof (tcbhead_t, pointer_guard) - TLS_TCB_OFFSET - sizeof (tcbhead_t))