]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/l4re-core/uclibc/lib/contrib/uclibc/libpthread/nptl/sysdeps/powerpc/tcb-offsets.sym
Update
[l4.git] / l4 / pkg / l4re-core / uclibc / lib / contrib / uclibc / libpthread / nptl / sysdeps / powerpc / 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_register
8 # define __thread_register      ((void *) 0)
9 # define thread_offsetof(mem)   ((ptrdiff_t) THREAD_SELF + offsetof (struct pthread, mem))
10
11
12 #if TLS_MULTIPLE_THREADS_IN_TCB
13 MULTIPLE_THREADS_OFFSET         thread_offsetof (header.multiple_threads)
14 #endif
15 PID                             thread_offsetof (pid)
16 TID                             thread_offsetof (tid)
17 POINTER_GUARD                   (offsetof (tcbhead_t, pointer_guard) - TLS_TCB_OFFSET - sizeof (tcbhead_t))
18 #ifndef __ASSUME_PRIVATE_FUTEX
19 PRIVATE_FUTEX_OFFSET            thread_offsetof (header.private_futex)
20 #endif