diff --git a/arch/Kconfig b/arch/Kconfig index f5a69bbcbc..7910fc012f 100644 --- a/arch/Kconfig +++ b/arch/Kconfig @@ -464,6 +464,9 @@ endmenu # Architecture Capabilities # +config ARCH_HAS_SINGLE_THREAD_SUPPORT + bool + config ARCH_HAS_TIMING_FUNCTIONS bool diff --git a/arch/arm/core/aarch32/Kconfig b/arch/arm/core/aarch32/Kconfig index dbf0350a9e..9e40d1b6ba 100644 --- a/arch/arm/core/aarch32/Kconfig +++ b/arch/arm/core/aarch32/Kconfig @@ -9,6 +9,7 @@ config CPU_CORTEX_M select ARCH_HAS_CUSTOM_SWAP_TO_MAIN select HAS_CMSIS_CORE select HAS_FLASH_LOAD_OFFSET + select ARCH_HAS_SINGLE_THREAD_SUPPORT select ARCH_HAS_THREAD_ABORT select ARCH_HAS_TRUSTED_EXECUTION if ARM_TRUSTZONE_M select ARCH_HAS_STACK_PROTECTION if (ARM_MPU && !ARMV6_M_ARMV8_M_BASELINE) || CPU_CORTEX_M_HAS_SPLIM diff --git a/kernel/Kconfig b/kernel/Kconfig index 0f933a6068..3ac77e71b9 100644 --- a/kernel/Kconfig +++ b/kernel/Kconfig @@ -10,7 +10,7 @@ module-str = kernel source "subsys/logging/Kconfig.template.log_config" config MULTITHREADING - bool "Multi-threading" + bool "Multi-threading" if ARCH_HAS_SINGLE_THREAD_SUPPORT default y help If disabled, only the main thread is available, so a main() function