- File:
-
- 1 edited
-
libcfa/src/concurrency/kernel/startup.cfa (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/kernel/startup.cfa
rb4b63e8 re873838 122 122 NULL, 123 123 NULL, 124 NULL, 124 125 { 1, false, false }, 125 126 }; … … 212 213 //initialize the global state variables 213 214 kernelTLS.this_processor = mainProcessor; 215 kernelTLS.this_proc_id = (__processor_id_t*)mainProcessor; 214 216 kernelTLS.this_thread = mainThread; 215 217 … … 227 229 // Add the main thread to the ready queue 228 230 // once resume is called on mainProcessor->runner the mainThread needs to be scheduled like any normal thread 229 __schedule_thread( (__processor_id_t *)mainProcessor,mainThread);231 __schedule_thread(mainThread); 230 232 231 233 // SKULLDUGGERY: Force a context switch to the main processor to set the main thread's context to the current UNIX … … 324 326 processor * proc = (processor *) arg; 325 327 kernelTLS.this_processor = proc; 328 kernelTLS.this_proc_id = (__processor_id_t*)proc; 326 329 kernelTLS.this_thread = 0p; 327 330 kernelTLS.preemption_state.[enabled, disable_count] = [false, 1]; … … 441 444 442 445 static void ?{}( $thread & this, current_stack_info_t * info) with( this ) { 443 ticket = 1;446 ticket = TICKET_RUNNING; 444 447 state = Start; 445 448 self_cor{ info }; … … 474 477 this.cltr = &_cltr; 475 478 full_proc = true; 476 destroyer = 0p;477 479 do_terminate = false; 478 480 preemption_alarm = 0p;
Note:
See TracChangeset
for help on using the changeset viewer.