summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/threadinitialize.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-06-11 11:03:25 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-06-23 09:13:00 +0200
commit2d36931823be8be0c0fdf839f941cf20dd755523 (patch)
tree49fb0dc77781c44b6f0e3f28e92208e6594144ea /cpukit/score/src/threadinitialize.c
parentscore: Remove scheduler parameter from most ops (diff)
downloadrtems-2d36931823be8be0c0fdf839f941cf20dd755523.tar.bz2
score: Collect scheduler related fields in TCB
Add Thread_Scheduler_control to collect scheduler related fields of the TCB.
Diffstat (limited to 'cpukit/score/src/threadinitialize.c')
-rw-r--r--cpukit/score/src/threadinitialize.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/cpukit/score/src/threadinitialize.c b/cpukit/score/src/threadinitialize.c
index 2a79549848..e6c4985591 100644
--- a/cpukit/score/src/threadinitialize.c
+++ b/cpukit/score/src/threadinitialize.c
@@ -159,6 +159,7 @@ bool _Thread_Initialize(
* General initialization
*/
+ the_thread->Start.isr_level = isr_level;
the_thread->Start.is_preemptible = is_preemptible;
the_thread->Start.budget_algorithm = budget_algorithm;
the_thread->Start.budget_callout = budget_callout;
@@ -179,10 +180,8 @@ bool _Thread_Initialize(
#endif
}
- the_thread->Start.isr_level = isr_level;
-
#if defined(RTEMS_SMP)
- the_thread->scheduler = scheduler;
+ the_thread->Scheduler.control = scheduler;
_Resource_Node_initialize( &the_thread->Resource_node );
_CPU_Context_Set_is_executing( &the_thread->Registers, false );
#endif