From 016bcb3f9d82a0c02aab87326ce94bee0365a956 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 22 Dec 2020 13:10:53 +0100 Subject: bsps/arm: Rely on initialized vector table The arm_cp15_set_exception_handler() is a complicated function which should be avoided if possible. Update #4202. --- bsps/arm/include/dev/irq/arm-gic-arch.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/bsps/arm/include/dev/irq/arm-gic-arch.h b/bsps/arm/include/dev/irq/arm-gic-arch.h index fe981da4f7..c9931be61a 100644 --- a/bsps/arm/include/dev/irq/arm-gic-arch.h +++ b/bsps/arm/include/dev/irq/arm-gic-arch.h @@ -37,7 +37,6 @@ #ifndef _RTEMS_DEV_IRQ_ARM_GIC_ARM_H #define _RTEMS_DEV_IRQ_ARM_GIC_ARM_H -#include #include #include @@ -55,10 +54,10 @@ static inline void arm_interrupt_handler_dispatch(rtems_vector_number vector) static inline void arm_interrupt_facility_set_exception_handler(void) { - arm_cp15_set_exception_handler( - ARM_EXCEPTION_IRQ, - _ARMV4_Exception_interrupt - ); + /* + * There is no need to install _ARMV4_Exception_interrupt() since this + * handler is already set by start.S. + */ } #ifdef __cplusplus -- cgit v1.2.3