forked from Imagelibrary/rtems
enhanced rtems_shutdown_executive to insure that no attempt will
be made to shut the system down when it is down.
This commit is contained in:
@@ -290,5 +290,8 @@ void rtems_shutdown_executive(
|
||||
unsigned32 result
|
||||
)
|
||||
{
|
||||
_Thread_Stop_multitasking();
|
||||
if ( _System_state_Current != SYSTEM_STATE_SHUTDOWN ) {
|
||||
_System_state_Set( SYSTEM_STATE_SHUTDOWN );
|
||||
_Thread_Stop_multitasking();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -290,5 +290,8 @@ void rtems_shutdown_executive(
|
||||
unsigned32 result
|
||||
)
|
||||
{
|
||||
_Thread_Stop_multitasking();
|
||||
if ( _System_state_Current != SYSTEM_STATE_SHUTDOWN ) {
|
||||
_System_state_Set( SYSTEM_STATE_SHUTDOWN );
|
||||
_Thread_Stop_multitasking();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user