[rtems commit] bsps/arm: Rely on initialized vector table
Sebastian Huber
sebh at rtems.org
Wed Dec 23 09:26:45 UTC 2020
Module: rtems
Branch: master
Commit: 016bcb3f9d82a0c02aab87326ce94bee0365a956
Changeset: http://git.rtems.org/rtems/commit/?id=016bcb3f9d82a0c02aab87326ce94bee0365a956
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Tue Dec 22 13:10:53 2020 +0100
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 fe981da..c9931be 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 <libcpu/arm-cp15.h>
#include <bsp/irq-generic.h>
#include <rtems/score/armv4.h>
@@ -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
More information about the vc
mailing list