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#define thread_offsetof(mem)	(long)(offsetof(struct pthread, mem) - TLS_TCB_OFFSET - TLS_PRE_TCB_SIZE)
8
9MULTIPLE_THREADS_OFFSET		thread_offsetof (header.multiple_threads)
10TID_OFFSET			thread_offsetof (tid)
11