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
F96139381: D42135.id.diff
Mon, Sep 23, 8:01 PM
Unknown Object (File)
Sun, Sep 22, 1:53 AM
Unknown Object (File)
Fri, Sep 20, 1:03 AM
Unknown Object (File)
Wed, Sep 18, 11:12 AM
Unknown Object (File)
Wed, Sep 18, 8:18 AM
Unknown Object (File)
Wed, Sep 18, 6:46 AM
Unknown Object (File)
Tue, Sep 17, 2:04 PM
Unknown Object (File)
Tue, Sep 17, 7:07 AM

Diff Detail

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

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