initial commit
[glibc.git] / sysdeps / nios2 / nptl / tcb-offsets.sym
1 #include <sysdep.h>
2 #include <tls.h>
3
4 --
5
6 -- Abuse tls.h macros to derive offsets relative to the thread register.
7 # undef __thread_self
8 # define __thread_self ((void *) 0)
9 # define thread_offsetof(mem) ((ptrdiff_t) THREAD_SELF + offsetof (struct pthread, mem))
10
11 MULTIPLE_THREADS_OFFSET thread_offsetof (header.multiple_threads)
12 TID_OFFSET thread_offsetof (tid)
13 POINTER_GUARD (offsetof (tcbhead_t, pointer_guard) - TLS_TCB_OFFSET - sizeof (tcbhead_t))