summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/threadstart.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/score/src/threadstart.c')
-rw-r--r--cpukit/score/src/threadstart.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpukit/score/src/threadstart.c b/cpukit/score/src/threadstart.c
index 5b9604e264..b65a2c3380 100644
--- a/cpukit/score/src/threadstart.c
+++ b/cpukit/score/src/threadstart.c
@@ -30,7 +30,7 @@ bool _Thread_Start(
void *entry_point,
void *pointer_argument,
Thread_Entry_numeric_type numeric_argument,
- Per_CPU_Control *processor
+ Per_CPU_Control *cpu
)
{
if ( _States_Is_dormant( the_thread->current_state ) ) {
@@ -43,11 +43,11 @@ bool _Thread_Start(
_Thread_Load_environment( the_thread );
- if ( processor == NULL ) {
+ if ( cpu == NULL ) {
_Thread_Ready( the_thread );
} else {
the_thread->current_state = STATES_READY;
- _Scheduler_Start_idle( the_thread, processor );
+ _Scheduler_Start_idle( _Scheduler_Get( the_thread ), the_thread, cpu );
}
_User_extensions_Thread_start( the_thread );