From 5d76e176384a84627c417423a12e4ccefcb3615b Mon Sep 17 00:00:00 2001 From: patacongo Date: Sat, 8 Nov 2008 17:46:36 +0000 Subject: [PATCH] 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 --- sched/irq_attach.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sched/irq_attach.c b/sched/irq_attach.c index cc5ff832e2..02063438f0 100644 --- a/sched/irq_attach.c +++ b/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; }