about summary refs log tree commit diff
path: root/nptl/sysdeps/alpha/tcb-offsets.sym
blob: 3f6433d5e906a3a7697e2e4a0cc32da817c1abd7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#include <sysdep.h>
#include <tls.h>

--

-- Abuse tls.h macros to derive offsets relative to the thread register.
# define __builtin_thread_pointer()  ((void *) 0)
# define thread_offsetof(mem)	     ((void *) &THREAD_SELF->mem - (void *) 0)

#if TLS_MULTIPLE_THREADS_IN_TCB
MULTIPLE_THREADS_OFFSET		thread_offsetof (header.multiple_threads)
#endif