mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-13 06:40:09 +00:00
346f18ae18
Update. 2004-06-28 Jakub Jelinek <jakub@redhat.com> * sysdeps/unix/alpha/sysdep.h (inline_syscall6): Fix a typo. [BZ #231] * sysdeps/unix/alpha/sysdep.S (__syscall_error): Avoid !samegp relocation in librt.so. [BZ #230] * sysdeps/alpha/dl-machine.h (_dl_start_user): Use ldah/ldl to load _dl_skip_args. Patch by Jakub Bogusz <qboosh@pld-linux.org>.
12 lines
345 B
Plaintext
12 lines
345 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)
|
|
|
|
MULTIPLE_THREADS_OFFSET thread_offsetof (header.multiple_threads)
|
|
PID_OFFSET thread_offsetof (pid)
|