* sysdeps/alpha/tcb-offsets.sym (PID_OFFSET): New.
[glibc.git] / sysdeps / alpha / nptl / tcb-offsets.sym
bloba1a1e45951028f5f9405a6e482b1e96bcf642807
1 #include <sysdep.h>
2 #include <tls.h>
4 --
6 -- Abuse tls.h macros to derive offsets relative to the thread register.
7 # define __builtin_thread_pointer()  ((void *) 0)
8 # define thread_offsetof(mem)        ((void *) &THREAD_SELF->mem - (void *) 0)
10 #if TLS_MULTIPLE_THREADS_IN_TCB
11 MULTIPLE_THREADS_OFFSET         thread_offsetof (header.multiple_threads)
12 #endif
13 PID_OFFSET                      thread_offsetof (pid)