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:
parent
b62a3692d7
commit
ff294e02cd
2 changed files with 8 additions and 0 deletions
|
@ -39,6 +39,7 @@ config X86
|
||||||
select ATOMIC_OPERATIONS_BUILTIN
|
select ATOMIC_OPERATIONS_BUILTIN
|
||||||
select HAS_DTS
|
select HAS_DTS
|
||||||
select ARCH_HAS_CUSTOM_SWAP_TO_MAIN if !X86_64
|
select ARCH_HAS_CUSTOM_SWAP_TO_MAIN if !X86_64
|
||||||
|
select CPU_HAS_MMU
|
||||||
help
|
help
|
||||||
x86 architecture
|
x86 architecture
|
||||||
|
|
||||||
|
@ -477,6 +478,12 @@ config CPU_HAS_MPU
|
||||||
help
|
help
|
||||||
This option is enabled when the CPU has a Memory Protection Unit (MPU).
|
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
|
config MEMORY_PROTECTION
|
||||||
bool
|
bool
|
||||||
help
|
help
|
||||||
|
|
|
@ -66,6 +66,7 @@ if CPU_CORTEX_A
|
||||||
config ARMV8_A
|
config ARMV8_A
|
||||||
bool
|
bool
|
||||||
select ATOMIC_OPERATIONS_BUILTIN
|
select ATOMIC_OPERATIONS_BUILTIN
|
||||||
|
select CPU_HAS_MMU
|
||||||
help
|
help
|
||||||
This option signifies the use of an ARMv8-A processor
|
This option signifies the use of an ARMv8-A processor
|
||||||
implementation.
|
implementation.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue