summaryrefslogtreecommitdiff
path: root/nuttx/sched/irq_attach.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-11-08 17:46:36 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-11-08 17:46:36 +0000
commite37724041718e6b0ea5828af36c690299dd1b142 (patch)
treed984575edd2990192f015f8d5f73b84222a83e64 /nuttx/sched/irq_attach.c
parent3e8b678e3238233a349ca0a09b5a0c516c2995e0 (diff)
downloadpx4-nuttx-e37724041718e6b0ea5828af36c690299dd1b142.tar.gz
px4-nuttx-e37724041718e6b0ea5828af36c690299dd1b142.tar.bz2
px4-nuttx-e37724041718e6b0ea5828af36c690299dd1b142.zip
Can't use if up_disable_irq if there is not interrupt controller
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1174 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/irq_attach.c')
-rw-r--r--nuttx/sched/irq_attach.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/nuttx/sched/irq_attach.c b/nuttx/sched/irq_attach.c
index cc5ff832e..02063438f 100644
--- a/nuttx/sched/irq_attach.c
+++ b/nuttx/sched/irq_attach.c
@@ -91,7 +91,9 @@ int irq_attach(int irq, xcpt_t isr)
state = irqsave();
if (isr == NULL)
{
+#ifndef CONFIG_ARCH_NOINTC
up_disable_irq(irq);
+#endif
isr = irq_unexpected_isr;
}