Lines Matching refs:old
155 thread_t machine_switch_context(thread_t old, thread_continue_t continuation, thread_t new)
161 kprintf("machine_switch_context: %p -> %p (cont: %p)\n", old, new, continuation);
164 if (old == new)
165 panic("machine_switch_context: old = new thread (%p %p)", old, new);
171 datap->old_thread = old;
173 save_vfp_context(old);
176 if ((old->map->pmap != new_pmap)) {
184 retval = Switch_context(old, continuation, new);
192 machine_stack_handoff(thread_t old,
199 assert(old);
201 if (old == new)
204 kprintf("machine_stack_handoff: %p = old, %p = new\n", old, new);
206 save_vfp_context(old);
208 stack = machine_stack_detach(old);
215 old->machine.iss = 0;
217 if (stack == old->reserved_stack) {
219 old->reserved_stack = new->reserved_stack;
225 * because old stack is already initialized.
229 if ((old->map->pmap != new_pmap)) {