Page MenuHomeFreeBSD

x86: Rename {stop,start}_emulating to fpu_{enable,disable}
ClosedPublic

Authored by jhb on Oct 9 2023, 4:27 PM.
Tags
None
Referenced Files
F115678010: D42135.diff
Sun, Apr 27, 12:20 AM
Unknown Object (File)
Sat, Apr 19, 7:00 PM
Unknown Object (File)
Tue, Apr 8, 11:08 AM
Unknown Object (File)
Mon, Apr 7, 3:17 AM
Unknown Object (File)
Sun, Apr 6, 1:50 PM
Unknown Object (File)
Feb 22 2025, 2:19 PM
Unknown Object (File)
Feb 22 2025, 1:57 PM
Unknown Object (File)
Feb 22 2025, 1:36 PM

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 53902
Build 50793: arc lint + arc unit

Event Timeline

sys/amd64/amd64/fpu.c
803

fpu_enable()?

sys/amd64/amd64/fpu.c
803

I chose clts() here due to the comment above explicitly referencing %cr0.TS, but perhaps fpu_enable() is more correct?

sys/amd64/amd64/fpu.c
803

I do not think the specific name there matters. Perhaps the comment should stop referencing lazy mode.

Might be, it is time to remove the workaround as well (I am not too sure about it).

markj added inline comments.
sys/amd64/amd64/fpu.c
803

I slightly prefer to be consistent and write fpu_enable().

This revision is now accepted and ready to land.Oct 11 2023, 1:38 PM