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)
Thu, Oct 24, 3:57 AM
Unknown Object (File)
Oct 20 2024, 11:56 AM
Unknown Object (File)
Oct 3 2024, 12:27 AM
Unknown Object (File)
Oct 2 2024, 10:29 PM
Unknown Object (File)
Oct 1 2024, 10:47 AM
Unknown Object (File)
Sep 17 2024, 8:42 PM
Unknown Object (File)
Sep 14 2024, 1:57 AM
Unknown Object (File)
Sep 6 2024, 9:46 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