Changeset 744d2878 in rtems


Ignore:
Timestamp:
02/14/96 18:48:39 (27 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
f972294d
Parents:
df26b788
Message:

removed arguments from _Thread_Start_multitasking

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/score/src/thread.c

    rdf26b788 r744d2878  
    2222#include <rtems/score/priority.h>
    2323#include <rtems/score/states.h>
     24#include <rtems/score/sysstate.h>
    2425#include <rtems/score/thread.h>
    2526#include <rtems/score/threadq.h>
     
    9495)
    9596{
    96    _Thread_Executing  =
    97    _Thread_Heir       =
    98    _Thread_MP_Receive = system_thread;
    99 
    100    /*
    101     *  Scheduling will not work "correctly" until the above
    102     *  statements have been executed.
    103     */
    104 
    105    _Thread_Ready( system_thread );
    106    _Thread_Ready( idle_thread );
    107 
    108    _Context_Switch_necessary = FALSE;
    109 
    110    _Context_Switch( &_Thread_BSP_context, &system_thread->Registers );
    111 
     97  /*
     98   *  The system is now multitasking and completely initialized. 
     99   *  This system thread now either "goes away" in a single processor
     100   *  system or "turns into" the server thread in an MP system.
     101   */
     102
     103  _System_state_Set( SYSTEM_STATE_UP );
     104
     105  _Context_Switch_necessary = FALSE;
     106
     107  _Thread_Executing = _Thread_Heir;
     108
     109  _Context_Switch( &_Thread_BSP_context, &_Thread_Executing->Registers );
    112110}
    113111
  • cpukit/score/src/thread.c

    rdf26b788 r744d2878  
    2222#include <rtems/score/priority.h>
    2323#include <rtems/score/states.h>
     24#include <rtems/score/sysstate.h>
    2425#include <rtems/score/thread.h>
    2526#include <rtems/score/threadq.h>
     
    9495)
    9596{
    96    _Thread_Executing  =
    97    _Thread_Heir       =
    98    _Thread_MP_Receive = system_thread;
    99 
    100    /*
    101     *  Scheduling will not work "correctly" until the above
    102     *  statements have been executed.
    103     */
    104 
    105    _Thread_Ready( system_thread );
    106    _Thread_Ready( idle_thread );
    107 
    108    _Context_Switch_necessary = FALSE;
    109 
    110    _Context_Switch( &_Thread_BSP_context, &system_thread->Registers );
    111 
     97  /*
     98   *  The system is now multitasking and completely initialized. 
     99   *  This system thread now either "goes away" in a single processor
     100   *  system or "turns into" the server thread in an MP system.
     101   */
     102
     103  _System_state_Set( SYSTEM_STATE_UP );
     104
     105  _Context_Switch_necessary = FALSE;
     106
     107  _Thread_Executing = _Thread_Heir;
     108
     109  _Context_Switch( &_Thread_BSP_context, &_Thread_Executing->Registers );
    112110}
    113111
Note: See TracChangeset for help on using the changeset viewer.