Page MenuHomeFreeBSD

Always store the arm64 VFP context
ClosedPublic

Authored by andrew on Jan 9 2023, 8:41 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 7, 2:44 AM
Unknown Object (File)
Mon, Oct 28, 8:49 AM
Unknown Object (File)
Sun, Oct 20, 5:08 AM
Unknown Object (File)
Oct 2 2024, 2:38 AM
Unknown Object (File)
Oct 2 2024, 2:24 AM
Unknown Object (File)
Oct 2 2024, 12:27 AM
Unknown Object (File)
Sep 25 2024, 4:58 AM
Unknown Object (File)
Sep 24 2024, 12:45 PM
Subscribers

Details

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 Not Applicable
Unit
Tests Not Applicable