Files
rtems/bsps/arm/shared/irq/irq-dispatch-armv7m.c
2022-03-10 08:43:50 +01:00

27 lines
662 B
C

/*
* Copyright (c) 2011-2012 Sebastian Huber. All rights reserved.
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rtems.org/license/LICENSE.
*/
#include <rtems/score/armv7m.h>
#include <bsp/irq-generic.h>
#include <bsp/armv7m-irq.h>
#ifdef ARM_MULTILIB_ARCH_V7M
void _ARMV7M_NVIC_Interrupt_dispatch(void)
{
rtems_vector_number vector =
ARMV7M_SCB_ICSR_VECTACTIVE_GET(_ARMV7M_SCB->icsr);
_ARMV7M_Interrupt_service_enter();
bsp_interrupt_handler_dispatch(ARMV7M_IRQ_OF_VECTOR(vector));
_ARMV7M_Interrupt_service_leave();
}
#endif /* ARM_MULTILIB_ARCH_V7M */