HomeFreeBSD

amd64: add pcb_tlsbase

Description

amd64: add pcb_tlsbase

This is a value for TLS base that would be explicitly set by user.
It is forced into the fsbase register on entry to signal handler, making
TLS in the handler usable even if userspace uses segmentation.

Reported and tested: Alex S <iwtcex@gmail.com>
Tested by: pho
Reviewed by: olce
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D50482

Details

Provenance
kibAuthored on May 19 2025, 11:56 PM
Reviewer
olce
Differential Revision
D50482: amd64: add pcb_tlsbase
Parents
rGddab534cd6f6: amd64: do not handle fs/gs bases conditionally on the selector
Branches
Unknown
Tags
Unknown