summaryrefslogtreecommitdiffstats
path: root/cpukit/sapi/src/exshutdown.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-05-27 17:31:46 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-05-31 15:20:31 +0200
commite3be6915989d79a8797b775974f501a359226319 (patch)
treeba03a5fdc008b33da067bb9837f8b6c6d82317e0 /cpukit/sapi/src/exshutdown.c
parentbsps: Use _Objects_Information_table (diff)
downloadrtems-e3be6915989d79a8797b775974f501a359226319.tar.bz2
score: Remove idle field of Per_CPU_Control
This field is unused except for special case simulator clock drivers. In these places use an alternative. Add and use _Thread_Set_global_exit_status() and _Thread_Get_global_exit_status().
Diffstat (limited to 'cpukit/sapi/src/exshutdown.c')
-rw-r--r--cpukit/sapi/src/exshutdown.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/cpukit/sapi/src/exshutdown.c b/cpukit/sapi/src/exshutdown.c
index 2b99995825..a54b1e6e86 100644
--- a/cpukit/sapi/src/exshutdown.c
+++ b/cpukit/sapi/src/exshutdown.c
@@ -44,8 +44,7 @@ void rtems_shutdown_executive(
_SMP_Request_other_cores_to_shutdown();
#endif
- _Per_CPU_Information[0].idle->Wait.return_code = result;
-
+ _Thread_Set_global_exit_status( result );
_System_state_Set( SYSTEM_STATE_SHUTDOWN );
_Thread_Stop_multitasking();