diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-07-13 18:34:22 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-07-13 18:34:22 +0000 |
commit | f58ef8ae7a0ff7e31d89d1b792a70b7ba7dbac6b (patch) | |
tree | 789d3f4839434da42114800c812ccf258ea38fd5 /cpukit/sapi/src/exshutdown.c | |
parent | 2011-07-13 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-f58ef8ae7a0ff7e31d89d1b792a70b7ba7dbac6b.tar.bz2 |
2011-07-13 Joel Sherrill <joel.sherrilL@OARcorp.com>
PR 1824/cpukit
* sapi/include/rtems/init.h, sapi/src/exinit.c, sapi/src/exshutdown.c:
Return exit/shutdown status back to boot_card().
Diffstat (limited to 'cpukit/sapi/src/exshutdown.c')
-rw-r--r-- | cpukit/sapi/src/exshutdown.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cpukit/sapi/src/exshutdown.c b/cpukit/sapi/src/exshutdown.c index 1de3b843e2..f004dbd755 100644 --- a/cpukit/sapi/src/exshutdown.c +++ b/cpukit/sapi/src/exshutdown.c @@ -44,6 +44,9 @@ void rtems_shutdown_executive( #if defined(RTEMS_SMP) _SMP_Request_other_cores_to_shutdown(); #endif + + _Per_CPU_Information[0].idle->Wait.return_code = result; + _System_state_Set( SYSTEM_STATE_SHUTDOWN ); _Thread_Stop_multitasking(); } |