diff options
Diffstat (limited to 'sysdeps/arc/nptl/tcb-offsets.sym')
-rw-r--r-- | sysdeps/arc/nptl/tcb-offsets.sym | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sysdeps/arc/nptl/tcb-offsets.sym b/sysdeps/arc/nptl/tcb-offsets.sym new file mode 100644 index 0000000000..64c432c22e --- /dev/null +++ b/sysdeps/arc/nptl/tcb-offsets.sym @@ -0,0 +1,11 @@ +#include <sysdep.h> +#include <tls.h> + +-- Derive offsets relative to the thread register. +#define thread_offsetof(mem) (long)(offsetof (struct pthread, mem) - sizeof (struct pthread)) + +MULTIPLE_THREADS_OFFSET offsetof (struct pthread, header.multiple_threads) +TLS_PRE_TCB_SIZE sizeof (struct pthread) +TLS_TCB_SIZE sizeof (tcbhead_t) + +PTHREAD_TID offsetof (struct pthread, tid) |