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 <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2020-06-12 16:50:16 -07:00 committed by Carles Cufí
commit ff294e02cd
2 changed files with 8 additions and 0 deletions

View file

@ -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

View file

@ -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.