summaryrefslogtreecommitdiffstats
path: root/cpukit/sapi
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-09-04 13:09:48 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-09-04 13:09:48 +0000
commit56e171066de897e3e8196b5e7479913b12ce2af6 (patch)
tree94887d97a946d9e4b6f86ccbd0f283bd05893aea /cpukit/sapi
parentFix expat. (diff)
downloadrtems-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.c2
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();
}