From 0773fd596317ff2213d8f2287d2891ebbe1fd2c6 Mon Sep 17 00:00:00 2001 From: Ioannis Glaropoulos Date: Mon, 9 Mar 2020 19:05:44 +0100 Subject: [PATCH] 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 --- arch/arm/core/aarch32/irq_manage.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/arm/core/aarch32/irq_manage.c b/arch/arm/core/aarch32/irq_manage.c index f8481accd20..6d1cf304b4a 100644 --- a/arch/arm/core/aarch32/irq_manage.c +++ b/arch/arm/core/aarch32/irq_manage.c @@ -142,6 +142,8 @@ void z_arm_irq_priority_set(unsigned int irq, unsigned int prio, u32_t flags) #endif +void z_arm_fatal_error(unsigned int reason, const z_arch_esf_t *esf); + /** * * @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 * called. * - * See z_arm_reserved(). - * * @return N/A */ void z_irq_spurious(void *unused) { ARG_UNUSED(unused); - z_arm_reserved(); + + z_arm_fatal_error(K_ERR_SPURIOUS_IRQ, NULL); } #ifdef CONFIG_SYS_POWER_MANAGEMENT