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