forked from Imagelibrary/rtems
bsps/aarch64: Restore interrupt nesting
Fixing the debug mask flag broke nested interrupts. This restores that functionality.
This commit is contained in:
committed by
Joel Sherrill
parent
19c101281a
commit
ef207e9ed5
@@ -49,8 +49,10 @@ extern "C" {
|
||||
static inline void arm_interrupt_handler_dispatch(rtems_vector_number vector)
|
||||
{
|
||||
uint32_t interrupt_level = _CPU_ISR_Get_level();
|
||||
_CPU_ISR_Set_level(1);
|
||||
/* Enable interrupts for nesting */
|
||||
_CPU_ISR_Set_level(0);
|
||||
bsp_interrupt_handler_dispatch(vector);
|
||||
/* Restore interrupts to previous level */
|
||||
_CPU_ISR_Set_level(interrupt_level);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user