diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-10-06 16:20:53 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-10-06 16:20:53 +0000 |
commit | a305dd56e4fcf5d74b3bfb5e4d91f1e48e6e1298 (patch) | |
tree | 38238ad32d0cec73a53f458a03c172a8734a8757 /nuttx/arch/arm/src/common/up_internal.h | |
parent | 38dc3d5a7c2dfaf6a6d867e7c41ab455d2e8bc6f (diff) | |
download | px4-nuttx-a305dd56e4fcf5d74b3bfb5e4d91f1e48e6e1298.tar.gz px4-nuttx-a305dd56e4fcf5d74b3bfb5e4d91f1e48e6e1298.tar.bz2 px4-nuttx-a305dd56e4fcf5d74b3bfb5e4d91f1e48e6e1298.zip |
Add option for ARM interrupt stack
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@981 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/common/up_internal.h')
-rw-r--r-- | nuttx/arch/arm/src/common/up_internal.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/nuttx/arch/arm/src/common/up_internal.h b/nuttx/arch/arm/src/common/up_internal.h index 76313b31d..862ceb82c 100644 --- a/nuttx/arch/arm/src/common/up_internal.h +++ b/nuttx/arch/arm/src/common/up_internal.h @@ -65,6 +65,12 @@ # define CONFIG_USE_EARLYSERIALINIT 1 #endif +/* Check if an interrupt stack size is configured */ + +#ifndef CONFIG_ARCH_INTERRUPTSTACK +# define CONFIG_ARCH_INTERRUPTSTACK 0 +#endif + /**************************************************************************** * Public Types ****************************************************************************/ @@ -92,6 +98,12 @@ extern uint32 *current_regs; */ extern uint32 g_heapbase; + +/* Address of the saved user stack pointer */ + +#if CONFIG_ARCH_INTERRUPTSTACK > 3 +extern uint32 g_userstack; +#endif #endif /**************************************************************************** |