Lines Matching defs:new
131 thread_t new)
138 if (old == new)
173 new->machine.specFlags |= OnProc;
182 if(new->machine.specFlags & runningVM) { /* Is the new guy running a VM? */
183 pmap_switch(new->machine.vmmCEntry->vmmPmap); /* Switch to the VM's pmap */
184 ppinfo->VMMareaPhys = new->machine.vmmCEntry->vmmContextPhys;
185 ppinfo->VMMXAFlgs = new->machine.vmmCEntry->vmmXAFlgs;
186 ppinfo->FAMintercept = new->machine.vmmCEntry->vmmFAMintercept;
189 new_pmap = new->task->map->pmap;
201 retval = Switch_context(old, continuation, new);
212 * Initialize the machine-dependent state for a new thread.
561 * move a stack from old to new thread
567 thread_t new)
576 assert(new);
579 if (old == new)
583 new->kernel_stack = stack;
585 assert(new->reserved_stack);
586 old->reserved_stack = new->reserved_stack;
587 new->reserved_stack = stack;
616 new->machine.specFlags |= OnProc;
618 if(new->machine.specFlags & runningVM) { /* Is the new guy running a VM? */
619 pmap_switch(new->machine.vmmCEntry->vmmPmap); /* Switch to the VM's pmap */
620 ppinfo->VMMareaPhys = new->machine.vmmCEntry->vmmContextPhys;
621 ppinfo->VMMXAFlgs = new->machine.vmmCEntry->vmmXAFlgs;
622 ppinfo->FAMintercept = new->machine.vmmCEntry->vmmFAMintercept;
625 new_pmap = new->task->map->pmap;
631 machine_set_current_thread(new);
632 ppinfo->Uassist = new->machine.cthread_self;
634 ppinfo->ppbbTaskEnv = new->machine.bbTaskEnv;
635 ppinfo->spcFlags = new->machine.specFlags;
641 if(trcWork.traceMask) dbgTrace(0x9903, (unsigned int)old, (unsigned int)new, 0, 0); /* Cut trace entry if tracing */