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)
Sun, Apr 21, 12:07 AM
Unknown Object (File)
Sat, Apr 6, 4:26 AM
Unknown Object (File)
Dec 20 2023, 8:14 AM
Unknown Object (File)
Dec 11 2023, 11:31 PM
Unknown Object (File)
Nov 27 2023, 10:45 AM
Unknown Object (File)
Sep 5 2023, 10:36 PM
Unknown Object (File)
Sep 3 2023, 12:56 PM
Unknown Object (File)
Aug 28 2023, 5:18 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