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, May 17, 8:04 AM
Unknown Object (File)
Mon, Apr 22, 3:53 AM
Unknown Object (File)
Feb 21 2024, 8:08 PM
Unknown Object (File)
Feb 10 2024, 7:05 AM
Unknown Object (File)
Jan 29 2024, 12:26 PM
Unknown Object (File)
Dec 23 2023, 1:38 AM
Unknown Object (File)
Dec 12 2023, 5:35 AM
Unknown Object (File)
Oct 27 2023, 6:01 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