arch: add CONFIG_MMU

This config indicates that a memory management unit is present
and enabled, which will in turn allow arch APIs to allow
mapping memory to be used.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2020-06-12 17:53:12 -07:00 committed by Carles Cufí
parent ff294e02cd
commit 542dcae0c7

View file

@ -484,6 +484,21 @@ config CPU_HAS_MMU
This hidden option is selected when the CPU has a Memory Management Unit
(MMU).
config MMU
bool
depends on CPU_HAS_MMU
help
This option is enabled when the CPU's memory management unit is active
and the arch_mem_map() API is available.
config MMU_PAGE_SIZE
hex "Size of smallest granularity MMU page"
depends on MMU
default 0x1000
help
Size of memory pages. Varies per MMU but 4K is common. For MMUs that
support multiple page sizes, put the smallest one here.
config MEMORY_PROTECTION
bool
help