Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/concurrency/kernel/startup.cfa

    r7cf3b1d r1959528  
    3434#include "kernel_private.hfa"
    3535#include "startup.hfa"          // STARTUP_PRIORITY_XXX
    36 #include "limits.hfa"
    3736#include "math.hfa"
    3837
     
    178177
    179178
     179
    180180//=============================================================================================
    181181// Kernel Setup logic
     
    515515        this.rdq.its = 0;
    516516        this.rdq.itr = 0;
    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;
     517        this.rdq.id  = -1u;
     518        this.rdq.target = -1u;
     519        this.rdq.last = -1u;
     520        this.rdq.cutoff = 0ull;
    522521        do_terminate = false;
    523522        preemption_alarm = 0p;
     
    537536        }
    538537
    539         this.idle_wctx.fd = 0;
    540 
    541         // I'm assuming these two are reserved for standard input and output
    542         // so I'm using them as sentinels with idle_wctx.
    543         /* paranoid */ verify( this.idle_fd != 0 );
    544         /* paranoid */ verify( this.idle_fd != 1 );
    545 
    546538        #if !defined(__CFA_NO_STATISTICS__)
    547539                print_stats = 0;
     
    597589// Cluster
    598590static void ?{}(__cluster_proc_list & this) {
    599         this.fdw   = 0p;
     591        this.fd    = 0;
    600592        this.idle  = 0;
    601593        this.total = 0;
     
    694686        uint_fast32_t last_size;
    695687        [this->unique_id, last_size] = ready_mutate_register();
    696 
    697                 this->rdq.cpu = __kernel_getcpu();
    698688
    699689                this->cltr->procs.total += 1u;
Note: See TracChangeset for help on using the changeset viewer.