From 56e171066de897e3e8196b5e7479913b12ce2af6 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 4 Sep 2009 13:09:48 +0000 Subject: 2009-09-04 Sebastian Huber * 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. --- cpukit/sapi/src/exshutdown.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpukit/sapi') 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(); } -- cgit v1.2.3