Skip to content
Permalink
Browse files

arc: use z_fatal_error() for spurious IRQs

We shouldn't special-case this to just spin forever.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
  • Loading branch information...
andrewboie committed Jul 16, 2019
1 parent 8a9e8e0 commit 297ca06934f2c18b6020a07c0cf121404f72ce98
Showing with 1 addition and 4 deletions.
  1. +1 −4 arch/arc/core/irq_manage.c
@@ -99,10 +99,7 @@ void z_irq_priority_set(unsigned int irq, unsigned int prio, u32_t flags)
void z_irq_spurious(void *unused)
{
ARG_UNUSED(unused);
printk("z_irq_spurious(). Spinning...\n");
for (;;) {
;
}
z_fatal_error(K_ERR_SPURIOUS_IRQ, NULL);
}

#ifdef CONFIG_DYNAMIC_INTERRUPTS

0 comments on commit 297ca06

Please sign in to comment.
You can’t perform that action at this time.