Page MenuHomeFreeBSD

x86: test the right CPUID bit when checking for XSAVEOPT support
ClosedPublic

Authored by kib on Mar 25 2024, 1:54 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 30, 1:17 PM
Unknown Object (File)
Thu, Nov 20, 4:21 AM
Unknown Object (File)
Tue, Nov 18, 10:20 PM
Unknown Object (File)
Tue, Nov 18, 4:23 AM
Unknown Object (File)
Sat, Nov 15, 9:37 PM
Unknown Object (File)
Nov 8 2025, 4:18 AM
Unknown Object (File)
Oct 20 2025, 2:59 AM
Unknown Object (File)
Oct 15 2025, 7:04 PM
Subscribers

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

kib requested review of this revision.Mar 25 2024, 1:54 PM
emaste added inline comments.
sys/amd64/amd64/fpu.c
241

possibly CPUID_EXTSTATE_XSAVEOPT should be renamed also (avoiding EXTSTATE)?

(it looks like Linux has a single namespace for all of the CPUID data and calls this bit X86_FEATURE_XSAVEOPT)

This revision is now accepted and ready to land.Mar 25 2024, 5:29 PM
sys/amd64/amd64/fpu.c
241

EXTSTATE designates the different word from CPUID. Linux' X86_FEATURE are not CPUID bits, they are calculated software bits.