diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-09-04 13:09:48 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-09-04 13:09:48 +0000 |
commit | 56e171066de897e3e8196b5e7479913b12ce2af6 (patch) | |
tree | 94887d97a946d9e4b6f86ccbd0f283bd05893aea /cpukit/sapi | |
parent | Fix expat. (diff) | |
download | rtems-56e171066de897e3e8196b5e7479913b12ce2af6.tar.bz2 |
2009-09-04 Sebastian Huber <Sebastian.Huber@embedded-brains.de>
* rtems/src/taskmode.c, sapi/src/exshutdown.c,
score/include/rtems/score/sysstate.h,
score/inline/rtems/score/sysstate.inl: Added
_System_state_Is_shutdown(). Removed direct uses of
_System_state_Current. Documentation.
Diffstat (limited to 'cpukit/sapi')
-rw-r--r-- | cpukit/sapi/src/exshutdown.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/sapi/src/exshutdown.c b/cpukit/sapi/src/exshutdown.c index a136391048..1df2a4ba5a 100644 --- a/cpukit/sapi/src/exshutdown.c +++ b/cpukit/sapi/src/exshutdown.c @@ -35,7 +35,7 @@ void rtems_shutdown_executive( uint32_t result ) { - if ( _System_state_Current != SYSTEM_STATE_SHUTDOWN ) { + if ( !_System_state_Is_shutdown( _System_state_Get() ) ) { _System_state_Set( SYSTEM_STATE_SHUTDOWN ); _Thread_Stop_multitasking(); } |