From ad808354d2133f253d229a47f93fe7c951e62fa6 Mon Sep 17 00:00:00 2001 From: Ioannis Glaropoulos Date: Fri, 30 Apr 2021 10:46:38 +0200 Subject: [PATCH] arch: arm: Add config for non-blocking secure calls MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Introduce a Kconfig option to allow Secure function calls to be pre-empted. Signed-off-by: Ioannis Glaropoulos Signed-off-by: Øyvind Rønningstad --- arch/arm/core/aarch32/Kconfig | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/core/aarch32/Kconfig b/arch/arm/core/aarch32/Kconfig index 85f5f37905e..272364fef60 100644 --- a/arch/arm/core/aarch32/Kconfig +++ b/arch/arm/core/aarch32/Kconfig @@ -215,6 +215,16 @@ config ARM_NONSECURE_FIRMWARE resources of the Cortex-M MCU, and, therefore, it shall avoid accessing them. +config ARM_NONSECURE_PREEMPTIBLE_SECURE_CALLS + bool "Allow secure function calls to be preempted" + depends on ARM_NONSECURE_FIRMWARE + help + When enabled, this option indicates that preemptible Zephyr + threads performing secure function calls, are allowed to be + preempted. When disabled, the option indicates that such + threads many not be context-switched-out while doing a Secure + function call. + choice prompt "Floating point ABI" default FP_HARDABI