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, Nov 8, 11:49 AM
Unknown Object (File)
Sun, Nov 3, 8:55 AM
Unknown Object (File)
Mon, Oct 21, 1:49 PM
Unknown Object (File)
Oct 20 2024, 7:20 AM
Unknown Object (File)
Oct 20 2024, 6:00 AM
Unknown Object (File)
Oct 2 2024, 2:26 AM
Unknown Object (File)
Sep 27 2024, 6:11 PM
Unknown Object (File)
Sep 24 2024, 12:45 PM
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