arch: arm: aarch32: fix z_irq_spurious() implementation
We align the implementation of z_irq_spurious() handler with the other Zephyr ARCHEs, i.e. we will be calling directly the ARM-specific fatal error function with K_ERR_SPURIOUS_IRQ as the error type. This is already the case for aarch64. Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
This commit is contained in:
parent
a31795c440
commit
0773fd5963
1 changed files with 4 additions and 3 deletions
|
@ -142,6 +142,8 @@ void z_arm_irq_priority_set(unsigned int irq, unsigned int prio, u32_t flags)
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
void z_arm_fatal_error(unsigned int reason, const z_arch_esf_t *esf);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @brief Spurious interrupt handler
|
* @brief Spurious interrupt handler
|
||||||
|
@ -149,14 +151,13 @@ void z_arm_irq_priority_set(unsigned int irq, unsigned int prio, u32_t flags)
|
||||||
* Installed in all _sw_isr_table slots at boot time. Throws an error if
|
* Installed in all _sw_isr_table slots at boot time. Throws an error if
|
||||||
* called.
|
* called.
|
||||||
*
|
*
|
||||||
* See z_arm_reserved().
|
|
||||||
*
|
|
||||||
* @return N/A
|
* @return N/A
|
||||||
*/
|
*/
|
||||||
void z_irq_spurious(void *unused)
|
void z_irq_spurious(void *unused)
|
||||||
{
|
{
|
||||||
ARG_UNUSED(unused);
|
ARG_UNUSED(unused);
|
||||||
z_arm_reserved();
|
|
||||||
|
z_arm_fatal_error(K_ERR_SPURIOUS_IRQ, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_SYS_POWER_MANAGEMENT
|
#ifdef CONFIG_SYS_POWER_MANAGEMENT
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue