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:
parent
2f540a8e6e
commit
5d76e17638
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue