mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-27 15:30:07 +00:00
dc927809b1
* sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Rewrite based on powerpc version. 2004-01-13 Richard Henderson <rth@redhat.com> * sysdeps/alpha/Makefile: New file. * sysdeps/alpha/tcb-offsets.sym: New file. * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (SINGLE_THREAD_P): Use MULTIPLE_THREADS_OFFSET to implement !libpthread !libc version. * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Rewrite based on powerpc version.
13 lines
349 B
Plaintext
13 lines
349 B
Plaintext
#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
|