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)
Sat, Oct 19, 1:10 AM
Unknown Object (File)
Fri, Oct 18, 11:55 PM
Unknown Object (File)
Fri, Oct 18, 11:55 PM
Unknown Object (File)
Fri, Oct 18, 11:25 PM
Unknown Object (File)
Oct 16 2024, 7:32 PM
Unknown Object (File)
Oct 16 2024, 7:32 PM
Unknown Object (File)
Oct 16 2024, 7:32 PM
Unknown Object (File)
Oct 16 2024, 7:09 PM
Subscribers

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.