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)
Mon, Jan 13, 11:04 AM
Unknown Object (File)
Wed, Jan 8, 12:59 AM
Unknown Object (File)
Fri, Dec 20, 10:17 AM
Unknown Object (File)
Dec 5 2024, 3:36 AM
Unknown Object (File)
Dec 4 2024, 6:17 AM
Unknown Object (File)
Nov 22 2024, 8:53 PM
Unknown Object (File)
Oct 24 2024, 3:57 AM
Unknown Object (File)
Oct 20 2024, 11:56 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