From 5475de105b58ae78470e91e09d625898affe6498 Mon Sep 17 00:00:00 2001 From: Ioannis Glaropoulos Date: Thu, 1 Mar 2018 21:15:54 +0100 Subject: [PATCH] arch: arm: define the ARM_SECURE_FIRMWARE option This commit introduces the ARM_SECURE_FIRMWARE k-option, which indicates that we are building an ARM Secure application. Signed-off-by: Ioannis Glaropoulos --- arch/arm/core/Kconfig | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm/core/Kconfig b/arch/arm/core/Kconfig index 4822694b2fa..ea3412c7c79 100644 --- a/arch/arm/core/Kconfig +++ b/arch/arm/core/Kconfig @@ -42,6 +42,23 @@ config ARM_STACK_PROTECTION This option enables MPU stack guard to cause a system fatal error if the bounds of the current process stack are overflowed. +config ARM_SECURE_FIRMWARE + bool + default n + help + This option enables Zephyr to include code that executes in + Secure state, as well as to exclude code that is designed to + execute only in Non-secure state. The option is only applicable + to ARMv8-M MCUs that implement the Security Extension. + + Code executing in Secure state has access to both the Secure + and Non-Secure resources of the Cortex-M MCU. + + Code executing in Non-Secure state may trigger Secure Faults, + if Secure MCU resources are accessed from the Non-Secure state. + Secure Faults may only be handled by code executing in Secure + state. + menu "Architectue Floating Point Options" depends on CPU_HAS_FPU