mirror of
https://github.com/apache/nuttx.git
synced 2026-10-07 22:35:22 +00:00
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
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue