HomeFreeBSD

Optimize libc to get and set TLS using the RDFSBASE and RDGSBASE

Description

Optimize libc to get and set TLS using the RDFSBASE and RDGSBASE
instructions, if supported both by CPU and kernel.

Reviewed by: jhb (previous version)
Tested by: pho (previous version)
Sponsored by: The FreeBSD Foundation
MFC after: 3 weeks
Differential revision: https://reviews.freebsd.org/D12023

Details

Provenance
kibAuthored on
Reviewer
jhb
Differential Revision
D12023: Make WRFSBASE and WRGSBASE functional.
Parents
rS322762: Make WRFSBASE and WRGSBASE instructions functional.
Branches
Unknown
Tags
Unknown