summaryrefslogtreecommitdiff
path: root/nuttx/arch/sh/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/arch/sh/src/common')
-rw-r--r--nuttx/arch/sh/src/common/up_doirq.c2
-rw-r--r--nuttx/arch/sh/src/common/up_internal.h6
2 files changed, 6 insertions, 2 deletions
diff --git a/nuttx/arch/sh/src/common/up_doirq.c b/nuttx/arch/sh/src/common/up_doirq.c
index 6b0d2c0fc..01aa21500 100644
--- a/nuttx/arch/sh/src/common/up_doirq.c
+++ b/nuttx/arch/sh/src/common/up_doirq.c
@@ -81,7 +81,7 @@ void up_doirq(int irq, uint32* regs)
current_regs = regs;
- /* Mask and acknowledge the interrupt */
+ /* Mask and acknowledge the interrupt (if supported by the chip) */
up_maskack_irq(irq);
diff --git a/nuttx/arch/sh/src/common/up_internal.h b/nuttx/arch/sh/src/common/up_internal.h
index 31f016074..8cb3ee2dd 100644
--- a/nuttx/arch/sh/src/common/up_internal.h
+++ b/nuttx/arch/sh/src/common/up_internal.h
@@ -171,9 +171,13 @@ extern void up_wdtinit(void);
extern void up_timerinit(void);
-/* Defined in up_irq.c */
+/* Defined in chip-specific logic if CONFIG_ARCH_NOINTC is not set */
+#ifndef CONFIG_ARCH_NOINTC
extern void up_maskack_irq(int irq);
+#else
+# define up_maskack_irq(irq)
+#endif
/* Defined in board/up_leds.c */