- File:
-
- 1 edited
-
libcfa/src/concurrency/kernel/startup.cfa (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/kernel/startup.cfa
r145dcd5 r919a6b2 34 34 #include "kernel_private.hfa" 35 35 #include "startup.hfa" // STARTUP_PRIORITY_XXX 36 #include "limits.hfa"37 36 #include "math.hfa" 38 37 … … 102 101 extern void __wake_proc(processor *); 103 102 extern int cfa_main_returned; // from interpose.cfa 103 extern uint32_t __global_random_seed; 104 104 105 105 //----------------------------------------------------------------------------- … … 175 175 this.context = &storage_mainThreadCtx; 176 176 } 177 178 177 179 178 … … 490 489 preferred = ready_queue_new_preferred(); 491 490 last_proc = 0p; 491 random_state = __global_random_seed; 492 492 #if defined( __CFA_WITH_VERIFY__ ) 493 493 canary = 0x0D15EA5E0D15EA5Ep; … … 514 514 this.rdq.its = 0; 515 515 this.rdq.itr = 0; 516 this.rdq.id = MAX; 517 this.rdq.target = MAX; 518 this.rdq.last = MAX; 519 this.rdq.cpu = 0; 520 // this.rdq.cutoff = 0ull; 516 this.rdq.id = -1u; 517 this.rdq.target = -1u; 518 this.rdq.last = -1u; 519 this.rdq.cutoff = 0ull; 521 520 do_terminate = false; 522 521 preemption_alarm = 0p; … … 686 685 uint_fast32_t last_size; 687 686 [this->unique_id, last_size] = ready_mutate_register(); 688 689 this->rdq.cpu = __kernel_getcpu();690 687 691 688 this->cltr->procs.total += 1u;
Note:
See TracChangeset
for help on using the changeset viewer.