From 1c0433bdf40a4a948ef29af47e9e8a9d19704f6c Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Tue, 23 Sep 2014 07:11:47 -0600 Subject: [PATCH] Add README files and configuration support for the shared memory logic --- arch/Kconfig | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/arch/Kconfig b/arch/Kconfig index e552869e44..c586595a94 100644 --- a/arch/Kconfig +++ b/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