Changeset 175f9f4 for libcfa/src/concurrency/kernel/startup.cfa
- Timestamp:
- Jan 18, 2022, 1:16:23 PM (2 years ago)
- Branches:
- ADT, ast-experimental, enum, forall-pointer-decay, master, pthread-emulation, qualifiedEnum
- Children:
- 1e8b4b49, adfd125
- Parents:
- 21a5bfb7 (diff), 91a72ef (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/kernel/startup.cfa
r21a5bfb7 r175f9f4 34 34 #include "kernel_private.hfa" 35 35 #include "startup.hfa" // STARTUP_PRIORITY_XXX 36 #include "limits.hfa" 36 37 #include "math.hfa" 37 38 … … 101 102 extern void __wake_proc(processor *); 102 103 extern int cfa_main_returned; // from interpose.cfa 104 extern uint32_t __global_random_seed; 103 105 104 106 //----------------------------------------------------------------------------- … … 174 176 this.context = &storage_mainThreadCtx; 175 177 } 176 177 178 178 179 … … 489 490 preferred = ready_queue_new_preferred(); 490 491 last_proc = 0p; 492 random_state = __global_random_seed; 491 493 #if defined( __CFA_WITH_VERIFY__ ) 492 494 canary = 0x0D15EA5E0D15EA5Ep; … … 513 515 this.rdq.its = 0; 514 516 this.rdq.itr = 0; 515 this.rdq.id = -1u; 516 this.rdq.target = -1u; 517 this.rdq.last = -1u; 518 this.rdq.cutoff = 0ull; 517 this.rdq.id = MAX; 518 this.rdq.target = MAX; 519 this.rdq.last = MAX; 520 this.rdq.cpu = 0; 521 // this.rdq.cutoff = 0ull; 519 522 do_terminate = false; 520 523 preemption_alarm = 0p; … … 684 687 uint_fast32_t last_size; 685 688 [this->unique_id, last_size] = ready_mutate_register(); 689 690 this->rdq.cpu = __kernel_getcpu(); 686 691 687 692 this->cltr->procs.total += 1u;
Note: See TracChangeset
for help on using the changeset viewer.