HomeFreeBSD

x86 vdso gettc: eliminate duplicated code in ifunc selectors.

Description

x86 vdso gettc: eliminate duplicated code in ifunc selectors.

Create array of rdtsc selectors and provide helper that calculate the
index into the selectors array.

Reviewed by: gallatin, markj
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D27986

Details

Provenance
kibAuthored on Jan 6 2021, 3:00 PM
Reviewer
gallatin
Differential Revision
D27986: x86 tsc: use RDTSCP in preference of fence + RDTSC
Parents
R10:de898cb96042: x86 vdso gettc: reorganize ifunctions.
Branches
Unknown
Tags
Unknown