From 542dcae0c7b97b3e720ddc16994990419dfc54db Mon Sep 17 00:00:00 2001 From: Andrew Boie Date: Fri, 12 Jun 2020 17:53:12 -0700 Subject: [PATCH] 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 --- arch/Kconfig | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/Kconfig b/arch/Kconfig index a5d13052a97..273ca4e0dd1 100644 --- a/arch/Kconfig +++ b/arch/Kconfig @@ -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