diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-09-23 07:11:47 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-09-23 07:11:47 -0600 |
commit | 0f3f2d5095043776fc32c2f802bbbf2ed3865533 (patch) | |
tree | 599ec7c7ad4de4cbba8ba9d034f065204395191e /nuttx/arch | |
parent | 28d43328a09aa47e58def877d6102bdf8b8bbb87 (diff) | |
download | px4-nuttx-0f3f2d5095043776fc32c2f802bbbf2ed3865533.tar.gz px4-nuttx-0f3f2d5095043776fc32c2f802bbbf2ed3865533.tar.bz2 px4-nuttx-0f3f2d5095043776fc32c2f802bbbf2ed3865533.zip |
Add README files and configuration support for the shared memory logic
Diffstat (limited to 'nuttx/arch')
-rw-r--r-- | nuttx/arch/Kconfig | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/nuttx/arch/Kconfig b/nuttx/arch/Kconfig index e552869e4..c586595a9 100644 --- a/nuttx/arch/Kconfig +++ b/nuttx/arch/Kconfig @@ -199,6 +199,12 @@ config ARCH_HEAP_VBASE ---help--- The virtual address of the beginning of the heap region. +config ARCH_SHM_VBASE + hex "Virtual heap base" + depends on MM_SHM + ---help--- + The virtual address of the beginning of the shared memory region. + config ARCH_TEXT_NPAGES int "Max .text pages" default 1 @@ -223,6 +229,36 @@ config ARCH_HEAP_NPAGES This, along with knowledge of the page size, determines the size of the heap virtual address space. Default is 1. +if MM_SHM + +config ARCH_SHM_MAXREGIONS + int "Max shared memory regions" + default 1 + ---help--- + The maximum number of regions that can allocated for the shared + memory space. This hard-coded value permits static allocation of + the shared memory data structures and serves no other purpose. + Default is 1. + + The size of the virtual shared memory address space is then + determined by the product of the maximum number of regions, the + maximum number of pages per region, and the configured size of + each page. + +config ARCH_SHM_NPAGES + int "Max shared memory pages" + default 1 + ---help--- + The maximum number of pages that can allocated per region for the shared memory + region. Default is 1. + + The size of the virtual shared memory address space is then + determined by the product of the maximum number of regions, the + maximum number of pages per region, and the configured size of + each page. + +endif # MM_SHM + config ARCH_STACK_DYNAMIC bool "Dynamic user stack" default n |