]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/uclibc/lib/contrib/uclibc/libpthread/nptl/sysdeps/arm/tcb-offsets.sym
update
[l4.git] / l4 / pkg / uclibc / lib / contrib / uclibc / libpthread / nptl / sysdeps / arm / tcb-offsets.sym
1 #include <sysdep.h>
2 #include <tls.h>
3
4 --
5
6 -- Derive offsets relative to the thread register.
7 #define thread_offsetof(mem)    (long)(offsetof(struct pthread, mem) - sizeof(struct pthread))
8
9 MULTIPLE_THREADS_OFFSET         thread_offsetof (header.multiple_threads)
10 PID_OFFSET                      thread_offsetof (pid)
11 TID_OFFSET                      thread_offsetof (tid)