forked from Imagelibrary/rtems
bsps: Disable interrupts in fatal extension
This commit is contained in:
committed by
Gedare Bloom
parent
fc68da47d5
commit
0bbb25b178
@@ -49,6 +49,16 @@ void bsp_fatal_extension(
|
|||||||
rtems_fatal_code code
|
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
|
#if BSP_VERBOSE_FATAL_EXTENSION
|
||||||
Thread_Control *executing;
|
Thread_Control *executing;
|
||||||
const char* TYPE = "*** FATAL ***";
|
const char* TYPE = "*** FATAL ***";
|
||||||
|
|||||||
Reference in New Issue
Block a user