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)
Fri, Apr 12, 6:39 AM
Unknown Object (File)
Mar 14 2024, 12:31 PM
Unknown Object (File)
Mar 13 2024, 2:29 AM
Unknown Object (File)
Jan 26 2024, 1:21 PM
Unknown Object (File)
Jan 12 2024, 8:42 PM
Unknown Object (File)
Dec 20 2023, 6:49 AM
Unknown Object (File)
Dec 13 2023, 3:59 AM
Unknown Object (File)
Dec 5 2023, 6:06 AM
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