Lines Matching defs:old
602 * Save the old thread`s kernel state or continuation,
607 thread_t old,
612 assert(current_cpu_datap()->cpu_active_stack == old->kernel_stack);
618 fpu_save_context(old);
620 old->machine.specFlags &= ~OnProc;
627 PMAP_SWITCH_CONTEXT(old, new, cpu_number())
634 return(Switch_context(old, continuation, new));
2049 * move a stack from old to new thread
2053 machine_stack_handoff(thread_t old,
2059 assert(old);
2061 stack = old->kernel_stack;
2062 if (stack == old->reserved_stack) {
2064 old->reserved_stack = new->reserved_stack;
2067 old->kernel_stack = 0;
2070 * because old stack is already initialized.
2074 fpu_save_context(old);
2076 old->machine.specFlags &= ~OnProc;
2079 PMAP_SWITCH_CONTEXT(old, new, cpu_number());