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:
parent
ff294e02cd
commit
542dcae0c7
1 changed files with 15 additions and 0 deletions
15
arch/Kconfig
15
arch/Kconfig
|
@ -484,6 +484,21 @@ config CPU_HAS_MMU
|
||||||
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).
|
||||||
|
|
||||||
|
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
|
config MEMORY_PROTECTION
|
||||||
bool
|
bool
|
||||||
help
|
help
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue