From 8a2f084cd36f771a6ff33e0b19f3f20e5171f07d Mon Sep 17 00:00:00 2001 From: Rohitkumar Girase Date: Tue, 16 Jul 2024 14:48:34 +0530 Subject: [PATCH] Update ordering of direct interrupt handlers in local IRQ table In direct interrupt mode, irq handlers are called via the local_irq_handler_table. The ordering of the handlers was not in line with the mie register and was causing some interrupts to be handeled incorrectly. Jira-Id: ESSBM-253 Signed-off-by: Rohitkumar Girase --- miv_rv32_hal/miv_rv32_hal.c | 4 ++-- miv_rv32_hal/miv_rv32_hal_version.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/miv_rv32_hal/miv_rv32_hal.c b/miv_rv32_hal/miv_rv32_hal.c index c0152c9..5960e59 100644 --- a/miv_rv32_hal/miv_rv32_hal.c +++ b/miv_rv32_hal/miv_rv32_hal.c @@ -264,12 +264,12 @@ void (* const local_irq_handler_table[16])(void) = #ifndef MIV_RV32_V3_0 MGEUI_IRQHandler, MGECI_IRQHandler, - SUBSYS_IRQHandler, - SUBSYSR_IRQHandler, Reserved_IRQHandler, Reserved_IRQHandler, Reserved_IRQHandler, Reserved_IRQHandler, + SUBSYSR_IRQHandler, + SUBSYS_IRQHandler, MSYS_EI0_IRQHandler, MSYS_EI1_IRQHandler, MSYS_EI2_IRQHandler, diff --git a/miv_rv32_hal/miv_rv32_hal_version.h b/miv_rv32_hal/miv_rv32_hal_version.h index 292e5fa..4a802d0 100644 --- a/miv_rv32_hal/miv_rv32_hal_version.h +++ b/miv_rv32_hal/miv_rv32_hal_version.h @@ -18,7 +18,7 @@ extern "C" { #define MIV_RV32_HAL_VERSION_MAJOR 4 #define MIV_RV32_HAL_VERSION_MINOR 3 -#define MIV_RV32_HAL_VERSION_PATCH 101 +#define MIV_RV32_HAL_VERSION_PATCH 102 #ifdef __cplusplus }