Move all files into ports/ subdirectory in preparation for merge with glibc
[glibc.git] / ports / sysdeps / mips / nptl / tcb-offsets.sym
blobe0e71dc43057a6cae0ac8fe2f1ce655292f0996b
1 #include <sysdep.h>
2 #include <tls.h>
4 --
6 -- Abuse tls.h macros to derive offsets relative to the thread register.
7 #define thread_offsetof(mem)    (long)(offsetof(struct pthread, mem) - TLS_TCB_OFFSET - TLS_PRE_TCB_SIZE)
9 MULTIPLE_THREADS_OFFSET         thread_offsetof (header.multiple_threads)
10 PID_OFFSET                      thread_offsetof (pid)
11 TID_OFFSET                      thread_offsetof (tid)