diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-05-27 17:31:46 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-05-31 15:20:31 +0200 |
commit | e3be6915989d79a8797b775974f501a359226319 (patch) | |
tree | ba03a5fdc008b33da067bb9837f8b6c6d82317e0 /cpukit/score/src/threadcreateidle.c | |
parent | bsps: Use _Objects_Information_table (diff) | |
download | rtems-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/score/src/threadcreateidle.c')
-rw-r--r-- | cpukit/score/src/threadcreateidle.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/cpukit/score/src/threadcreateidle.c b/cpukit/score/src/threadcreateidle.c index a0279dec49..cc4282eed3 100644 --- a/cpukit/score/src/threadcreateidle.c +++ b/cpukit/score/src/threadcreateidle.c @@ -40,9 +40,11 @@ static inline void _Thread_Create_idle_helper( int cpu ) { - Objects_Name name; - Thread_Control *idle; + Per_CPU_Control *per_cpu; + Objects_Name name; + Thread_Control *idle; + per_cpu = &_Per_CPU_Information[ cpu ]; name.name_u32 = name_u32; /* @@ -79,9 +81,8 @@ static inline void _Thread_Create_idle_helper( * WARNING!!! This is necessary to "kick" start the system and * MUST be done before _Thread_Start is invoked. */ - _Per_CPU_Information[ cpu ].idle = - _Per_CPU_Information[ cpu ].heir = - _Per_CPU_Information[ cpu ].executing = idle; + per_cpu->heir = + per_cpu->executing = idle; _Thread_Start( idle, |