bsps: Disable interrupts in fatal extension

This commit is contained in:
Sebastian Huber
2024-03-07 07:40:25 +01:00
committed by Gedare Bloom
parent fc68da47d5
commit 0bbb25b178

View File

@@ -49,6 +49,16 @@ void bsp_fatal_extension(
rtems_fatal_code code
)
{
rtems_interrupt_level level;
/*
* Make sure that interrupts don't interfere with the fatal error handling on
* this processor. This reduces the likelihood to end up in a recursive
* fatal error handling sequence.
*/
rtems_interrupt_local_disable( level );
(void) level;
#if BSP_VERBOSE_FATAL_EXTENSION
Thread_Control *executing;
const char* TYPE = "*** FATAL ***";