You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Introduced an API to support scenarios where FPU sharing across threads
is required. This API is a replacement of the original API whose purpose
has been changed (see below).
This API also allows applications to disable FP sharing mode and use
unshared FP registers, assuming that FP instructions are only issued
within a single, designated thread.
Currently, there is no known usage of this API, as the FPU context is
automatically preserved across threads by hardware on Cortex-M
(via the FPCCR.ASPEN register field).
The original API has been modified to always perform FPU context save/restore,
as its name implies.
Conditional compilation on CONFIG_FPU is necessary to avoid build errors
when the FPU is not enabled in the configuration.
The primary use case is preserving FPU context during suspend-to-RAM
transitions.
TFM code was updated to retain its original behavior. However, it is
unclear whether FPU context save/restore should happen unconditionally,
regardless of CONFIG_PM_SHARING.
Signed-off-by: Michele Sardo <msmttchr@gmail.com>
0 commit comments