]> git.ipfire.org Git - thirdparty/glibc.git/commit
nptl: Introduce <rseq-access.h> for RSEQ_* accessors
authorMichael Jeanson <mjeanson@efficios.com>
Thu, 1 Aug 2024 14:35:34 +0000 (10:35 -0400)
committerMichael Jeanson <mjeanson@efficios.com>
Fri, 10 Jan 2025 20:20:17 +0000 (20:20 +0000)
commit494d65129ed5ae1154b75cc189bbdde5e9ecf1df
tree0025adfdd5e774e0a9a5467b31996e54daa97e2d
parentbe440f6c38ec2cdfd05439d2d90f140da34b8ce6
nptl: Introduce <rseq-access.h> for RSEQ_* accessors

In preparation to move the rseq area to the 'extra TLS' block, we need
accessors based on the thread pointer and the rseq offset. The ONCE
variant of the accessors ensures single-copy atomicity for loads and
stores which is required for all fields once the registration is active.

A separate header is required to allow including <atomic.h> which
results in an include loop when added to <tcb-access.h>.

Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Reviewed-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Reviewed-by: Florian Weimer <fweimer@redhat.com>
sysdeps/i386/nptl/rseq-access.h [new file with mode: 0644]
sysdeps/nptl/rseq-access.h [new file with mode: 0644]
sysdeps/unix/sysv/linux/rseq-internal.h
sysdeps/x86_64/nptl/rseq-access.h [new file with mode: 0644]