From f030608701788d01a4059e215613d0d41839c3ca Mon Sep 17 00:00:00 2001 From: Ioannis Glaropoulos Date: Thu, 17 Oct 2019 19:13:12 +0200 Subject: [PATCH] arch: add Kconfig to signify ability to detect nested IRQ We introduce a Kconfig option to signify whether an Architecture has the capability of detecting whether execution is, currently, in a nested exception. Signed-off-by: Ioannis Glaropoulos --- arch/Kconfig | 3 +++ arch/arm/core/Kconfig | 1 + 2 files changed, 4 insertions(+) diff --git a/arch/Kconfig b/arch/Kconfig index 75fc830a0eb..fd3713b8661 100644 --- a/arch/Kconfig +++ b/arch/Kconfig @@ -354,6 +354,9 @@ config ARCH_HAS_NOCACHE_MEMORY_SUPPORT config ARCH_HAS_RAMFUNC_SUPPORT bool +config ARCH_HAS_NESTED_EXCEPTION_DETECTION + bool + # # Other architecture related options # diff --git a/arch/arm/core/Kconfig b/arch/arm/core/Kconfig index acecd583e16..12bd466496f 100644 --- a/arch/arm/core/Kconfig +++ b/arch/arm/core/Kconfig @@ -23,6 +23,7 @@ config CPU_CORTEX_M select ARCH_HAS_USERSPACE if ARM_MPU select ARCH_HAS_NOCACHE_MEMORY_SUPPORT if ARM_MPU && CPU_HAS_ARM_MPU && CPU_CORTEX_M7 select ARCH_HAS_RAMFUNC_SUPPORT + select ARCH_HAS_NESTED_EXCEPTION_DETECTION select SWAP_NONATOMIC help This option signifies the use of a CPU of the Cortex-M family.