summaryrefslogtreecommitdiff
path: root/nuttx/configs/sam3u-ek
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-03-17 00:40:49 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-03-17 00:40:49 +0000
commite6dc1927ce61a16359477bb93a2292caade5df75 (patch)
tree3b7ed6b971413d6423d6012fe593980ee8370429 /nuttx/configs/sam3u-ek
parentc6e15be439a293e411a5ff571c48e0ca15dfaad5 (diff)
downloadpx4-nuttx-e6dc1927ce61a16359477bb93a2292caade5df75.tar.gz
px4-nuttx-e6dc1927ce61a16359477bb93a2292caade5df75.tar.bz2
px4-nuttx-e6dc1927ce61a16359477bb93a2292caade5df75.zip
Add support for calling to and returning from signal handlers in in user-mode threads
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5750 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/sam3u-ek')
-rw-r--r--nuttx/configs/sam3u-ek/kernel/up_userspace.c8
-rwxr-xr-xnuttx/configs/sam3u-ek/knsh/defconfig2
2 files changed, 8 insertions, 2 deletions
diff --git a/nuttx/configs/sam3u-ek/kernel/up_userspace.c b/nuttx/configs/sam3u-ek/kernel/up_userspace.c
index ee61d1b69..484cdc2d0 100644
--- a/nuttx/configs/sam3u-ek/kernel/up_userspace.c
+++ b/nuttx/configs/sam3u-ek/kernel/up_userspace.c
@@ -101,13 +101,19 @@ const struct userspace_s userspace __attribute__ ((section (".userspace"))) =
.us_bssstart = (uintptr_t)&_sbss,
.us_bssend = (uintptr_t)&_ebss,
- /* Task/thread startup stubs */
+ /* Task/thread startup routines */
.task_startup = task_startup,
#ifndef CONFIG_DISABLE_PTHREAD
.pthread_startup = pthread_startup,
#endif
+ /* Signal handler trampoline */
+
+#ifndef CONFIG_DISABLE_SIGNALS
+ .signal_handler = signal_handler,
+#endif
+
/* Memory manager entry points (declared in include/nuttx/mm.h) */
.mm_initialize = umm_initialize,
diff --git a/nuttx/configs/sam3u-ek/knsh/defconfig b/nuttx/configs/sam3u-ek/knsh/defconfig
index 9bdb33004..71c646083 100755
--- a/nuttx/configs/sam3u-ek/knsh/defconfig
+++ b/nuttx/configs/sam3u-ek/knsh/defconfig
@@ -249,7 +249,7 @@ CONFIG_IDLETHREAD_STACKSIZE=1024
CONFIG_USERMAIN_STACKSIZE=2048
CONFIG_PTHREAD_STACK_MIN=256
CONFIG_PTHREAD_STACK_DEFAULT=2048
-CONFIG_SYS_RESERVED=6
+CONFIG_SYS_RESERVED=8
#
# Device Drivers