From 744d28783564361226b37f21bdf2f52b70e97ea2 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 14 Feb 1996 18:48:39 +0000 Subject: removed arguments from _Thread_Start_multitasking --- cpukit/score/src/thread.c | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) (limited to 'cpukit/score/src') diff --git a/cpukit/score/src/thread.c b/cpukit/score/src/thread.c index 4b48e6dec8..1214b9141e 100644 --- a/cpukit/score/src/thread.c +++ b/cpukit/score/src/thread.c @@ -21,6 +21,7 @@ #include #include #include +#include #include #include #include @@ -93,22 +94,19 @@ void _Thread_Start_multitasking( Thread_Control *idle_thread ) { - _Thread_Executing = - _Thread_Heir = - _Thread_MP_Receive = system_thread; - - /* - * Scheduling will not work "correctly" until the above - * statements have been executed. - */ + /* + * The system is now multitasking and completely initialized. + * This system thread now either "goes away" in a single processor + * system or "turns into" the server thread in an MP system. + */ - _Thread_Ready( system_thread ); - _Thread_Ready( idle_thread ); + _System_state_Set( SYSTEM_STATE_UP ); - _Context_Switch_necessary = FALSE; + _Context_Switch_necessary = FALSE; - _Context_Switch( &_Thread_BSP_context, &system_thread->Registers ); + _Thread_Executing = _Thread_Heir; + _Context_Switch( &_Thread_BSP_context, &_Thread_Executing->Registers ); } /*PAGE -- cgit v1.2.3