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
F110704901: D34595.id103968.diff
Sat, Feb 22, 2:51 AM
Unknown Object (File)
Mon, Feb 17, 11:08 PM
Unknown Object (File)
Sat, Feb 8, 4:42 AM
Unknown Object (File)
Fri, Jan 31, 1:06 PM
Unknown Object (File)
Sun, Jan 26, 6:18 PM
Unknown Object (File)
Jan 19 2025, 1:29 AM
Unknown Object (File)
Jan 13 2025, 11:04 AM
Unknown Object (File)
Jan 8 2025, 12:59 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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 44817
Build 41705: arc lint + arc unit

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