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
This commit is contained in:
patacongo 2008-11-08 17:46:36 +00:00
parent 2f540a8e6e
commit 5d76e17638
1 changed files with 2 additions and 0 deletions

View File

@ -91,7 +91,9 @@ int irq_attach(int irq, xcpt_t isr)
state = irqsave(); state = irqsave();
if (isr == NULL) if (isr == NULL)
{ {
#ifndef CONFIG_ARCH_NOINTC
up_disable_irq(irq); up_disable_irq(irq);
#endif
isr = irq_unexpected_isr; isr = irq_unexpected_isr;
} }