diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1997-04-09 20:03:35 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1997-04-09 20:03:35 +0000 |
commit | eafd6989b7e58e31ce92364d87f6e6ab72a7c3b9 (patch) | |
tree | 510aa89ec45aa6a85f55ee8c654587a3886ccc25 | |
parent | added support for statistics on rate monotonic periods. (diff) | |
download | rtems-eafd6989b7e58e31ce92364d87f6e6ab72a7c3b9.tar.bz2 |
enhanced rtems_shutdown_executive to insure that no attempt will
be made to shut the system down when it is down.
Diffstat (limited to '')
-rw-r--r-- | c/src/exec/sapi/src/exinit.c | 5 | ||||
-rw-r--r-- | cpukit/sapi/src/exinit.c | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/c/src/exec/sapi/src/exinit.c b/c/src/exec/sapi/src/exinit.c index 89d5ed6f70..37e2cc4df1 100644 --- a/c/src/exec/sapi/src/exinit.c +++ b/c/src/exec/sapi/src/exinit.c @@ -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(); + } } diff --git a/cpukit/sapi/src/exinit.c b/cpukit/sapi/src/exinit.c index 89d5ed6f70..37e2cc4df1 100644 --- a/cpukit/sapi/src/exinit.c +++ b/cpukit/sapi/src/exinit.c @@ -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(); + } } |