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:
Joel Sherrill
1997-04-09 20:03:35 +00:00
parent 113ef9fc7e
commit eafd6989b7
2 changed files with 8 additions and 2 deletions

View File

@@ -290,5 +290,8 @@ void rtems_shutdown_executive(
unsigned32 result unsigned32 result
) )
{ {
if ( _System_state_Current != SYSTEM_STATE_SHUTDOWN ) {
_System_state_Set( SYSTEM_STATE_SHUTDOWN );
_Thread_Stop_multitasking(); _Thread_Stop_multitasking();
}
} }

View File

@@ -290,5 +290,8 @@ void rtems_shutdown_executive(
unsigned32 result unsigned32 result
) )
{ {
if ( _System_state_Current != SYSTEM_STATE_SHUTDOWN ) {
_System_state_Set( SYSTEM_STATE_SHUTDOWN );
_Thread_Stop_multitasking(); _Thread_Stop_multitasking();
}
} }