arch: Kconfig: add sub-menu for MMU options

De-clutters the main menu.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2020-07-20 17:32:00 -07:00 committed by Anas Nashif
commit 1524ef2f52

View file

@ -492,17 +492,16 @@ config CPU_HAS_MMU
help help
This hidden option is selected when the CPU has a Memory Management Unit This hidden option is selected when the CPU has a Memory Management Unit
(MMU). (MMU).
menuconfig MMU
config MMU bool "Enable MMU features"
bool
depends on CPU_HAS_MMU depends on CPU_HAS_MMU
help help
This option is enabled when the CPU's memory management unit is active This option is enabled when the CPU's memory management unit is active
and the arch_mem_map() API is available. and the arch_mem_map() API is available.
if MMU
config MMU_PAGE_SIZE config MMU_PAGE_SIZE
hex "Size of smallest granularity MMU page" hex "Size of smallest granularity MMU page"
depends on MMU
default 0x1000 default 0x1000
help help
Size of memory pages. Varies per MMU but 4K is common. For MMUs that Size of memory pages. Varies per MMU but 4K is common. For MMUs that
@ -510,7 +509,6 @@ config MMU_PAGE_SIZE
config SRAM_REGION_PERMISSIONS config SRAM_REGION_PERMISSIONS
bool "Assign appropriate permissions to kernel areas in SRAM" bool "Assign appropriate permissions to kernel areas in SRAM"
depends on MMU
default y default y
help help
If enabled, the program text, rodata, and data parts of the kernel in If enabled, the program text, rodata, and data parts of the kernel in
@ -521,7 +519,6 @@ config SRAM_REGION_PERMISSIONS
config KERNEL_VM_BASE config KERNEL_VM_BASE
hex "Base virtual address for the kernel" hex "Base virtual address for the kernel"
depends on MMU
default SRAM_BASE_ADDRESS if X86 # TODO remove once x86 is linked properly default SRAM_BASE_ADDRESS if X86 # TODO remove once x86 is linked properly
default 0xFFFF800000000000 if 64BIT default 0xFFFF800000000000 if 64BIT
default 0xC0000000 default 0xC0000000
@ -546,7 +543,6 @@ config KERNEL_VM_BASE
config KERNEL_VM_LIMIT config KERNEL_VM_LIMIT
hex "Upper bound on kernel address space" hex "Upper bound on kernel address space"
depends on MMU
default 0xFFFFFFFFFFFFFFFF if 64BIT default 0xFFFFFFFFFFFFFFFF if 64BIT
default 0xFFFFFFFF default 0xFFFFFFFF
help help
@ -559,6 +555,8 @@ config KERNEL_VM_LIMIT
may be made at runtime depending on configuration options (such as may be made at runtime depending on configuration options (such as
memory-mapping stacks, VDSO pages, etc). memory-mapping stacks, VDSO pages, etc).
endif # MMU
config MEMORY_PROTECTION config MEMORY_PROTECTION
bool bool
help help