Page MenuHomeFreeBSD

arm64: Read tpidrro_el0 for the 32-bit TLS pointer.
AbandonedPublic

Authored by jhb on Sep 9 2022, 9:25 AM.
Tags
None
Referenced Files
F164705934: D36503.id110377.diff
Mon, Aug 3, 6:54 AM
Unknown Object (File)
Sun, Aug 2, 1:59 AM
Unknown Object (File)
Fri, Jul 24, 5:55 PM
Unknown Object (File)
Fri, Jul 17, 1:41 PM
Unknown Object (File)
Wed, Jul 15, 11:45 PM
Unknown Object (File)
Jun 24 2026, 2:51 PM
Unknown Object (File)
Jun 24 2026, 2:32 AM
Unknown Object (File)
Jun 15 2026, 7:40 AM
Subscribers

Details

Summary

This shouldn't be a functional change since cpu_set_user_tls sets both
registers, but this is technically more correct.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 47301
Build 44188: arc lint + arc unit

Event Timeline

Actually, I think the current code is more correct as the 32-bit kernel always uses TPIDRURW as the source of truth for TLS including for its get_arm_tls function.