[PATCH] x86-64: Move nptl/rseq-access.h to nptl/64 [BZ #32543]

Mathieu Desnoyers mathieu.desnoyers@efficios.com
Sat Jan 11 15:22:07 GMT 2025


On 11-Jan-2025 02:58:30 PM, Andreas K. Huettel wrote:
> Since i386/nptl/rseq-access.h (which has only one ABI) and x86_64/nptl/rseq-access.h
> are the only non-generic versions of this file, 
> 
> am I assuming correctly that we should *not* expect any surprises from exotic ABI on
> other types of machines (say 31bit s390 or mips n32)?

Correct, all other architectures use
sysdeps/unix/sysv/linux/rseq-internal.h:

static inline struct rseq_area *
RSEQ_SELF (void)
{
  return (struct rseq_area *) ((char *) __thread_pointer () + __rseq_offset);
}

Which should work everywhere.

Thanks,

Mathieu

-- 
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com


More information about the Libc-alpha mailing list