Page MenuHomeFreeBSD

arm,arm64: Add a NT_ARM_TLS read-only register set.
ClosedPublic

Authored by jhb on Mar 17 2022, 10:35 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Oct 1, 10:47 AM
Unknown Object (File)
Tue, Sep 17, 8:42 PM
Unknown Object (File)
Sat, Sep 14, 1:57 AM
Unknown Object (File)
Fri, Sep 6, 9:46 PM
Unknown Object (File)
Fri, Sep 6, 9:46 PM
Unknown Object (File)
Fri, Sep 6, 9:46 PM
Unknown Object (File)
Fri, Sep 6, 9:38 PM
Unknown Object (File)
Wed, Sep 4, 6:55 PM
Subscribers

Details

Summary

This register set exposes the per-thread TLS register. It matches the
layout used by Linux on arm64. Linux does not implement this note for
32-bit arm.

Sponsored by: University of Cambridge, Google, Inc.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jhb requested review of this revision.Mar 17 2022, 10:35 PM

I'm still testing this with gdb patches. So far it isn't quite working yet on the GDB side, though the core dumps look good to me. (The SD-card I used in my rpi for armv7 also died so I'm waiting for a new sd card to finish testing on 32-bit arm.)

markj added inline comments.
sys/arm64/arm64/ptrace_machdep.c
116

Maybe add an explicit cast to ward off static analyzers or compiler warnings.

This revision is now accepted and ready to land.Mar 17 2022, 10:42 PM
jhb marked an inline comment as done.Mar 23 2022, 8:26 PM