Lines Matching refs:old
176 thread_t machine_switch_context(thread_t old, thread_continue_t continuation,
183 kprintf("machine_switch_context: %p -> %p (cont: %p)\n", old, new, continuation);
185 if (old == new)
186 panic("machine_switch_context: old = new thread (%p %p)", old, new);
191 datap->old_thread = old;
193 save_vfp_context(old);
196 if ((old->map->pmap != new_pmap)) {
206 retval = Switch_context(old, continuation, new);
212 void machine_stack_handoff(thread_t old, thread_t new)
218 assert(old);
220 if (old == new)
223 kprintf("machine_stack_handoff: %p = old, %p = new\n", old, new);
225 save_vfp_context(old);
227 stack = machine_stack_detach(old);
234 old->machine.iss = 0;
236 if (stack == old->reserved_stack) {
238 old->reserved_stack = new->reserved_stack;
244 * because old stack is already initialized.
248 if ((old->map->pmap != new_pmap)) {