summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1996-02-14 18:48:39 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1996-02-14 18:48:39 +0000
commit744d28783564361226b37f21bdf2f52b70e97ea2 (patch)
treed53425c7d80748442293860e24b9f9421c4d6f03 /cpukit/score/src
parentwhite space problem (diff)
downloadrtems-744d28783564361226b37f21bdf2f52b70e97ea2.tar.bz2
removed arguments from _Thread_Start_multitasking
Diffstat (limited to 'cpukit/score/src')
-rw-r--r--cpukit/score/src/thread.c22
1 files changed, 10 insertions, 12 deletions
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 <rtems/score/object.h>
#include <rtems/score/priority.h>
#include <rtems/score/states.h>
+#include <rtems/score/sysstate.h>
#include <rtems/score/thread.h>
#include <rtems/score/threadq.h>
#include <rtems/score/userext.h>
@@ -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