summaryrefslogtreecommitdiff
path: root/nuttx/arch/avr/src/avr32/up_sigdeliver.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/arch/avr/src/avr32/up_sigdeliver.c')
-rw-r--r--nuttx/arch/avr/src/avr32/up_sigdeliver.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/nuttx/arch/avr/src/avr32/up_sigdeliver.c b/nuttx/arch/avr/src/avr32/up_sigdeliver.c
index b000f118a..c88669482 100644
--- a/nuttx/arch/avr/src/avr32/up_sigdeliver.c
+++ b/nuttx/arch/avr/src/avr32/up_sigdeliver.c
@@ -82,7 +82,11 @@
void up_sigdeliver(void)
{
_TCB *rtcb = (_TCB*)g_readytorun.head;
+#if 0
uint32_t regs[XCPTCONTEXT_REGS+3]; /* Why +3? See below */
+#else
+ uint32_t regs[XCPTCONTEXT_REGS];
+#endif
sig_deliver_t sigdeliver;
/* Save the errno. This must be preserved throughout the signal handling
@@ -140,7 +144,9 @@ void up_sigdeliver(void)
* dangerous because there is the very real possibility that the new
* stack pointer might overlap with the register save area and hat stack
* usage in up_fullcontextrestore might corrupt the register save data
- * before the state is restored.
+ * before the state is restored. At present, there does not appear to
+ * be any stack overlap problems. If there were, then adding 3 words
+ * to the size of register save structure size will protect its contents.
*/
up_ledoff(LED_SIGNAL);