summaryrefslogtreecommitdiff
path: root/nuttx/arch/sh/src/common/up_doirq.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/arch/sh/src/common/up_doirq.c')
-rw-r--r--nuttx/arch/sh/src/common/up_doirq.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/nuttx/arch/sh/src/common/up_doirq.c b/nuttx/arch/sh/src/common/up_doirq.c
index 717196682..185fa9684 100644
--- a/nuttx/arch/sh/src/common/up_doirq.c
+++ b/nuttx/arch/sh/src/common/up_doirq.c
@@ -79,6 +79,15 @@ uint32_t *up_doirq(int irq, uint32_t* regs)
{
uint32_t *savestate;
+ /* Nested interrupts are not supported in this implementation. If
+ * you want to implement nested interrupts, you would have to (1)
+ * change the way that current_regs is handled and (2) the design
+ * associated with CONFIG_ARCH_INTERRUPTSTACK. The savestate
+ * variable will not work for that purpose as implemented here
+ * because only the outermost nested interrupt can result in a
+ * context switch (it can probably be deleted).
+ */
+
/* Current regs non-zero indicates that we are processing
* an interrupt; current_regs is also used to manage
* interrupt level context switches.