From ff294e02cd27f04dc72eab2e13c9d85d5952de85 Mon Sep 17 00:00:00 2001 From: Andrew Boie Date: Fri, 12 Jun 2020 16:50:16 -0700 Subject: [PATCH] arch: add CONFIG_CPU_HAS_MMU Indicate that the CPU has a memory management unit, similar to CPU_HAS_MPU for MPUs. Signed-off-by: Andrew Boie --- arch/Kconfig | 7 +++++++ arch/arm/core/aarch64/Kconfig | 1 + 2 files changed, 8 insertions(+) diff --git a/arch/Kconfig b/arch/Kconfig index 2b1c9cbf2a5..a5d13052a97 100644 --- a/arch/Kconfig +++ b/arch/Kconfig @@ -39,6 +39,7 @@ config X86 select ATOMIC_OPERATIONS_BUILTIN select HAS_DTS select ARCH_HAS_CUSTOM_SWAP_TO_MAIN if !X86_64 + select CPU_HAS_MMU help x86 architecture @@ -477,6 +478,12 @@ config CPU_HAS_MPU help This option is enabled when the CPU has a Memory Protection Unit (MPU). +config CPU_HAS_MMU + bool + help + This hidden option is selected when the CPU has a Memory Management Unit + (MMU). + config MEMORY_PROTECTION bool help diff --git a/arch/arm/core/aarch64/Kconfig b/arch/arm/core/aarch64/Kconfig index 4e4222857a0..82c64841597 100644 --- a/arch/arm/core/aarch64/Kconfig +++ b/arch/arm/core/aarch64/Kconfig @@ -66,6 +66,7 @@ if CPU_CORTEX_A config ARMV8_A bool select ATOMIC_OPERATIONS_BUILTIN + select CPU_HAS_MMU help This option signifies the use of an ARMv8-A processor implementation.