zephyr/modules/trusted-firmware-m
Øyvind Rønningstad aed0643705 trusted-firmware-m: Store FP context before entering secure calls
When ARM_NONSECURE_PREEMPTIBLE_SECURE_CALLS is enabled, if FPU is
being used (CONTROL.FPCA == 1), store all FP registers before
entering the secure function, and restore them afterwards.

This is needed if any NS thread or ISR that interrupts the secure
function uses FP registers. If they do, a secure UsageFault occurs
unless this change is applied.

This allows k_sched_lock() and k_sched_unlock() to be dropped when
ARM_NONSECURE_PREEMPTIBLE_SECURE_CALLS is enabled.

Enable ARM_NONSECURE_PREEMPTIBLE_SECURE_CALLS by default when
building TF-M.

Signed-off-by: Øyvind Rønningstad <oyvind.ronningstad@nordicsemi.no>
2021-05-05 13:00:31 +02:00
..
interface trusted-firmware-m: Store FP context before entering secure calls 2021-05-05 13:00:31 +02:00
src
CMakeLists.txt CMakeLists.txt: Add support for TF-M Non-Secure regression tests 2021-04-21 23:18:30 +02:00
Kconfig trusted-firmware-m: Store FP context before entering secure calls 2021-05-05 13:00:31 +02:00