diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-03-09 01:27:42 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-03-09 01:27:42 +0000 |
commit | c2e0b7742ea0d530ed9cf9628f88994063c8d5c0 (patch) | |
tree | 91c6e04ee0a0e76ab23cfa7d6883bf7ab4a91904 /nuttx/mm/Kconfig | |
parent | f2c129b281fc8fa30eccb9b34df534f954ee3c47 (diff) | |
download | px4-nuttx-c2e0b7742ea0d530ed9cf9628f88994063c8d5c0.tar.gz px4-nuttx-c2e0b7742ea0d530ed9cf9628f88994063c8d5c0.tar.bz2 px4-nuttx-c2e0b7742ea0d530ed9cf9628f88994063c8d5c0.zip |
With these fixes, the kernel build is basically functional (but there is more to be done)
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5722 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/mm/Kconfig')
-rw-r--r-- | nuttx/mm/Kconfig | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/nuttx/mm/Kconfig b/nuttx/mm/Kconfig index 9724eb407..991972f32 100644 --- a/nuttx/mm/Kconfig +++ b/nuttx/mm/Kconfig @@ -11,10 +11,32 @@ config MM_MULTIHEAP confused with memory regions. One heap may be composed of multiple, non-contiguous memory regions. The fact that the heap is composed of such multiple regions is invisible to the end-user (other than - the heap comes pre-fragemented). Multiple heaps, on the other hand, + the heap comes pre-fragmented). Multiple heaps, on the other hand, supports a separate set of allocators that operate on a separate set of memory regions. +config MM_KERNEL_HEAP + bool "Support a protected, kernel heap" + default y + depends on NUTTX_KERNEL && MM_MULTIHEAP + ---help--- + Partition heap memory into two parts: (1) a protected, kernel-mode + heap accessible only by the NuttX kernel, and (2) an unprotected + user-mode heap for use by applications. If you are only interested + in protected the kernel from read access, then this option is not + necessary. If you wish to secure the kernel data as well, then + this option should be selected. + +config MM_KERNEL_HEAPSIZE + int "Kernal heap size" + default 8192 + depends on MM_KERNEL_HEAP + ---help--- + This is the size of the a protected, kernel-mode heap (in bytes). + The remaining of available memory is given to the unprotected + user-mode heap. This value may need to be aligned to units of the + size of the smallest memory protection region. + config MM_SMALL bool "Small memory model" default n |