summaryrefslogtreecommitdiff
path: root/nuttx/include/nuttx/addrenv.h
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-09-14 09:10:09 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-09-14 09:10:09 -0600
commit800a28e9274353b3d9257f0fee3126e2d9c33d04 (patch)
tree1cdb292678a07d00969fc180094c121a58e85795 /nuttx/include/nuttx/addrenv.h
parent47fe70d7c6af1d7135e2b39104aebd78e76ff135 (diff)
downloadnuttx-800a28e9274353b3d9257f0fee3126e2d9c33d04.tar.gz
nuttx-800a28e9274353b3d9257f0fee3126e2d9c33d04.tar.bz2
nuttx-800a28e9274353b3d9257f0fee3126e2d9c33d04.zip
Rename everything associated with the dynamic process stack to ustack to make room in the name space for a kstack
Diffstat (limited to 'nuttx/include/nuttx/addrenv.h')
-rw-r--r--nuttx/include/nuttx/addrenv.h18
1 files changed, 13 insertions, 5 deletions
diff --git a/nuttx/include/nuttx/addrenv.h b/nuttx/include/nuttx/addrenv.h
index 936b7ee14..ac5dce56e 100644
--- a/nuttx/include/nuttx/addrenv.h
+++ b/nuttx/include/nuttx/addrenv.h
@@ -139,7 +139,7 @@
#define ARCH_HEAP_VEND (CONFIG_ARCH_HEAP_VBASE + ARCH_HEAP_SIZE)
#ifdef CONFIG_ARCH_STACK_DYNAMIC
- /* Stack region */
+ /* User stack region */
# ifndef CONFIG_ARCH_STACK_VBASE
# error CONFIG_ARCH_STACK_VBASE not defined
@@ -158,6 +158,14 @@
# define ARCH_STACK_SIZE (CONFIG_ARCH_STACK_NPAGES * CONFIG_MM_PGSIZE)
# define ARCH_STACK_VEND (CONFIG_ARCH_STACK_VBASE + ARCH_STACK_SIZE)
+#ifdef CONFIG_ARCH_KERNEL_STACK
+/* Kernel stack */
+
+# ifndef CONFIG_ARCH_KERNEL_STACKSIZE
+# define CONFIG_ARCH_KERNEL_STACKSIZE 1568
+# endif
+#endif
+
/* A single page scratch region used for temporary mappings */
# define ARCH_SCRATCH_VBASE ARCH_STACK_VEND
@@ -290,10 +298,10 @@ struct addrenv_reserve_s
* If CONFIG_ARCH_STACK_DYNAMIC=y is selected then the platform specific
* code must export these additional interfaces:
*
- * up_addrenv_stackalloc - Create a stack address environment
- * up_addrenv_stackfree - Destroy a stack address environment.
- * up_addrenv_vstack - Returns the virtual base address of the stack
- * up_addrenv_stackselect - Instantiate a stack address environment
+ * up_addrenv_ustackalloc - Create a stack address environment
+ * up_addrenv_ustackfree - Destroy a stack address environment.
+ * up_addrenv_vustack - Returns the virtual base address of the stack
+ * up_addrenv_ustackselect - Instantiate a stack address environment
*
****************************************************************************/