Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/main/main.c

    r25939997 red7e057  
    287287         * starting the thread of kernel threads.
    288288         */
    289         current_copy(CURRENT, (current_t *) CPU_LOCAL->stack);
    290         context_replace(scheduler_run, CPU_LOCAL->stack, STACK_SIZE);
     289        scheduler_run();
    291290        /* not reached */
    292291}
     
    328327        ARCH_OP(post_cpu_init);
    329328
     329        current_copy(CURRENT, (current_t *) CPU_LOCAL->stack);
     330
    330331        /*
    331332         * If we woke kmp up before we left the kernel stack, we could
     
    333334         * switch to this cpu's private stack prior to waking kmp up.
    334335         */
    335         current_copy(CURRENT, (current_t *) CPU_LOCAL->stack);
    336336        context_replace(main_ap_separated_stack, CPU_LOCAL->stack, STACK_SIZE);
    337337        /* not reached */
Note: See TracChangeset for help on using the changeset viewer.