Page MenuHomeFreeBSD

Always store the arm64 VFP context
AbandonedPublic

Authored by andrew on Jan 9 2023, 9:20 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Sep 27, 6:11 PM
Unknown Object (File)
Tue, Sep 24, 12:45 PM
Unknown Object (File)
Fri, Sep 20, 4:29 AM
Unknown Object (File)
Mon, Sep 16, 3:46 PM
Unknown Object (File)
Sun, Sep 15, 1:20 PM
Unknown Object (File)
Fri, Sep 13, 7:44 AM
Unknown Object (File)
Sat, Sep 7, 5:38 PM
Unknown Object (File)
Sat, Sep 7, 7:30 AM
Subscribers

Details

Reviewers
kib
manu
Group Reviewers
arm64
Summary

If a thread enters a kernel FP context the PCB_FP_STARTED may be
unset when calling get_fpcontext even if the VFP unit has been used
by the current thread.

Reduce the use of this flag to just decide when to store the VFP state.

While here add an assert to check the assumption that the passed in
thread is the current thread and remove the unneeded critical section.
The latter is unneeded as the only place we would need it is in
vfp_save_state and this already has a critical section when needed.

Sponsored by: Arm Ltd

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 49026
Build 45915: arc lint + arc unit