Updated to fedora-glibc-20041215T0847
[glibc.git] / nptl / sysdeps / powerpc / tcb-offsets.sym
bloba9701fb5b7064fa57660b0e4b8412d6779dbedb5
1 #include <sysdep.h>
2 #include <tls.h>
4 --
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)   ((void *) &THREAD_SELF->mem - (void *) 0)
11 #if TLS_MULTIPLE_THREADS_IN_TCB
12 MULTIPLE_THREADS_OFFSET         thread_offsetof (header.multiple_threads)
13 #endif
14 PID                             thread_offsetof (pid)
15 TID                             thread_offsetof (tid)