Changeset 744d2878 in rtems for c/src/exec/score/src/thread.c
- Timestamp:
- 02/14/96 18:48:39 (28 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- f972294d
- Parents:
- df26b788
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/exec/score/src/thread.c
rdf26b788 r744d2878 22 22 #include <rtems/score/priority.h> 23 23 #include <rtems/score/states.h> 24 #include <rtems/score/sysstate.h> 24 25 #include <rtems/score/thread.h> 25 26 #include <rtems/score/threadq.h> … … 94 95 ) 95 96 { 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 ); 112 110 } 113 111
Note: See TracChangeset
for help on using the changeset viewer.