summaryrefslogtreecommitdiff
path: root/nuttx/arch/Kconfig
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-09-10 08:41:01 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-09-10 08:41:01 -0600
commit964637c55aa7e3205590c3e509eb7058f4d0869c (patch)
treeb55791e804f4c0115c3ac945da6a141ef55b6db3 /nuttx/arch/Kconfig
parent56bb85dc4173fec7d91379bd475c0310749d243c (diff)
downloadnuttx-964637c55aa7e3205590c3e509eb7058f4d0869c.tar.gz
nuttx-964637c55aa7e3205590c3e509eb7058f4d0869c.tar.bz2
nuttx-964637c55aa7e3205590c3e509eb7058f4d0869c.zip
Add configuration to use the fixed DRAM mapping for the page pool (if available) instead of remapping dynamically to access L2 page tables and page data. Also, add logic in address environment creation to initialize the shared data at the beginning of the .bss/.data process memory region.
Diffstat (limited to 'nuttx/arch/Kconfig')
-rw-r--r--nuttx/arch/Kconfig38
1 files changed, 38 insertions, 0 deletions
diff --git a/nuttx/arch/Kconfig b/nuttx/arch/Kconfig
index 11954a5a0..e57d59c35 100644
--- a/nuttx/arch/Kconfig
+++ b/nuttx/arch/Kconfig
@@ -236,6 +236,44 @@ config ARCH_STACK_NPAGES
This, along with knowledge of the page size, determines the size of
the stack virtual address space. Default is 1.
+config ARCH_PGPOOL_MAPPING
+ bool "Have page pool mapping"
+ default n
+ ---help---
+ If there is a MMU mapping in place for the page pool memory, then
+ this mapping can be utilized to simplify some page table operations.
+ Otherwise, a temporary mapping will have to be established each time
+ it is necessary to modify the contents of a page.
+
+if ARCH_PGPOOL_MAPPING
+
+config ARCH_PGPOOL_PBASE
+ hex "Page pool physical address"
+ default 0x0
+ ---help---
+ The physical address of the start of the page pool memory. This
+ setting is probably equivalent to other platform specific definitions
+ but is required again in order to modularize the common address
+ environment logic.
+
+config ARCH_PGPOOL_VBASE
+ hex "Page pool virtual address"
+ default 0x0
+ ---help---
+ The virtual address of the start of the page pool memory. This
+ setting is probably equivalent to other platform specific definitions
+ but is required again in order to modularize the common address
+ environment logic.
+
+config ARCH_PGPOOL_SIZE
+ int "Page pool size (byes)"
+ default 0
+ ---help---
+ The size of the page pool memory in bytes. This setting is probably
+ equivalent to other platform specific definitions but is required again
+ in order to modularize the common address environment logic.
+
+endif # ARCH_PGPOOL_MAPPING
endif # ARCH_ADDRENV && ARCH_NEED_ADDRENV_MAPPING
menuconfig PAGING