Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:23:05

0001 /*
0002  * Copyright (c) 2011-2012 Sebastian Huber.  All rights reserved.
0003  *
0004  * The license and distribution terms for this file may be
0005  * found in the file LICENSE in this distribution or at
0006  * http://www.rtems.org/license/LICENSE.
0007  */
0008 
0009 #include <rtems/score/armv7m.h>
0010 
0011 #include <bsp/irq-generic.h>
0012 #include <bsp/armv7m-irq.h>
0013 
0014 #ifdef ARM_MULTILIB_ARCH_V7M
0015 
0016 void _ARMV7M_NVIC_Interrupt_dispatch(void)
0017 {
0018   rtems_vector_number vector =
0019     ARMV7M_SCB_ICSR_VECTACTIVE_GET(_ARMV7M_SCB->icsr);
0020 
0021   _ARMV7M_Interrupt_service_enter();
0022   bsp_interrupt_handler_dispatch(ARMV7M_IRQ_OF_VECTOR(vector));
0023   _ARMV7M_Interrupt_service_leave();
0024 }
0025 
0026 #endif /* ARM_MULTILIB_ARCH_V7M */