Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/proc/scheduler.c

    r26aafe8 rdf58e44  
    102102#endif
    103103       
    104 #ifdef CONFIG_UDEBUG
    105104        if (THREAD->btrace) {
    106105                istate_t *istate = THREAD->udebug.uspace_state;
     
    112111                THREAD->btrace = false;
    113112        }
    114 #endif
    115113}
    116114
     
    354352       
    355353        /*
    356          * Through the 'THE' structure, we keep track of THREAD, TASK, CPU, AS
     354         * Through the 'THE' structure, we keep track of THREAD, TASK, CPU, VM
    357355         * and preemption counter. At this point THE could be coming either
    358356         * from THREAD's or CPU's stack.
     
    376374        context_save(&CPU->saved_context);
    377375        context_set(&CPU->saved_context, FADDR(scheduler_separated_stack),
    378             (uintptr_t) CPU->stack, STACK_SIZE);
     376            (uintptr_t) CPU->stack, CPU_STACK_SIZE);
    379377        context_restore(&CPU->saved_context);
    380378       
Note: See TracChangeset for help on using the changeset viewer.