Lines Matching defs:new
427 act_machine_switch_pcb( thread_t new )
429 pcb_t pcb = new->machine.pcb;
436 assert(new->kernel_stack != 0);
437 STACK_IEL(new->kernel_stack)->saved_state = pcb->iss;
501 cdp->cpu_task_map = new->map->pmap->pm_task_map;
538 cdp->cpu_uber_arg_store = UBER64((vm_offset_t)get_bsduthreadarg(new));
569 if (new->task == TASK_NULL || new->task->i386_ldt == 0) {
578 user_ldt_set(new);
593 thread_t new)
595 new->machine.specFlags |= OnProc;
596 act_machine_switch_pcb(new);
597 Load_context(new);
601 * Switch to a new thread.
609 thread_t new)
621 new->machine.specFlags |= OnProc;
627 PMAP_SWITCH_CONTEXT(old, new, cpu_number())
630 * Load the rest of the user state for the new thread
632 act_machine_switch_pcb(new);
634 return(Switch_context(old, continuation, new));
1645 * Initialize the machine-dependent state for a new thread.
1804 * when starting up a new processor
2049 * move a stack from old to new thread
2054 thread_t new)
2058 assert(new);
2063 assert(new->reserved_stack);
2064 old->reserved_stack = new->reserved_stack;
2065 new->reserved_stack = stack;
2072 new->kernel_stack = stack;
2077 new->machine.specFlags |= OnProc;
2079 PMAP_SWITCH_CONTEXT(old, new, cpu_number());
2080 act_machine_switch_pcb(new);
2082 machine_set_current_thread(new);