Ignore:
File:
1 edited

Legend:

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

    re873838 rb4b63e8  
    122122        NULL,
    123123        NULL,
    124         NULL,
    125124        { 1, false, false },
    126125};
     
    213212        //initialize the global state variables
    214213        kernelTLS.this_processor = mainProcessor;
    215         kernelTLS.this_proc_id   = (__processor_id_t*)mainProcessor;
    216214        kernelTLS.this_thread    = mainThread;
    217215
     
    229227        // Add the main thread to the ready queue
    230228        // 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);
    232230
    233231        // SKULLDUGGERY: Force a context switch to the main processor to set the main thread's context to the current UNIX
     
    326324        processor * proc = (processor *) arg;
    327325        kernelTLS.this_processor = proc;
    328         kernelTLS.this_proc_id   = (__processor_id_t*)proc;
    329326        kernelTLS.this_thread    = 0p;
    330327        kernelTLS.preemption_state.[enabled, disable_count] = [false, 1];
     
    444441
    445442static void ?{}( $thread & this, current_stack_info_t * info) with( this ) {
    446         ticket = TICKET_RUNNING;
     443        ticket = 1;
    447444        state = Start;
    448445        self_cor{ info };
     
    477474        this.cltr = &_cltr;
    478475        full_proc = true;
     476        destroyer = 0p;
    479477        do_terminate = false;
    480478        preemption_alarm = 0p;
Note: See TracChangeset for help on using the changeset viewer.