mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-25 20:21:07 +00:00
9852f6dcff
2004-03-11 Richard Henderson <rth@redhat.com> * sysdeps/alpha/tcb-offsets.sym (PID_OFFSET): New. * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: Save/restore PID. * sysdeps/unix/sysv/linux/alpha/vfork.S: New file.
14 lines
384 B
Plaintext
14 lines
384 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
|
|
PID_OFFSET thread_offsetof (pid)
|