mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-22 02:40:08 +00:00
d83f0734e1
Merge roland/nptl-hppa to master, update and test for hppa-linux-gnu. This commit squashes and commits the work done by Roland McGrath on roland/nptl-hppa to migrate hppa to the new non-addon NPTL. Some additional tweaks were required for tcb-offsets.sym to work correctly along with clone.S (unique to hppa).
20 lines
899 B
Plaintext
20 lines
899 B
Plaintext
#include <pthread.h>
|
|
#include <tls.h>
|
|
|
|
RESULT offsetof (struct pthread, result)
|
|
TID offsetof (struct pthread, tid)
|
|
PID offsetof (struct pthread, pid)
|
|
CANCELHANDLING offsetof (struct pthread, cancelhandling)
|
|
CLEANUP_JMP_BUF offsetof (struct pthread, cleanup_jmp_buf)
|
|
MULTIPLE_THREADS_OFFSET offsetof (struct pthread, header.multiple_threads)
|
|
TLS_PRE_TCB_SIZE sizeof (struct pthread)
|
|
MUTEX_FUTEX offsetof (pthread_mutex_t, __data.__lock)
|
|
|
|
-- Use a thread_offset when working with asm to make things simpler
|
|
-- This way we get the offset of a member in the struct pthread that
|
|
-- preceeds the thread pointer (which points to the dtv).
|
|
#define thread_offsetof(mem) (unsigned int)(offsetof(struct pthread, mem) - sizeof(struct pthread))
|
|
PID_THREAD_OFFSET thread_offsetof (pid)
|
|
TID_THREAD_OFFSET thread_offsetof (tid)
|
|
MULTIPLE_THREADS_THREAD_OFFSET thread_offsetof (header.multiple_threads)
|