Lines Matching refs:old

165 machine_pmc_cswitch(thread_t /* old */, thread_t /* new */);
168 pmc_swi(thread_t /* old */, thread_t /*new */);
171 pmc_swi(thread_t old, thread_t new) {
172 current_cpu_datap()->csw_old_thread = old;
178 machine_pmc_cswitch(thread_t old, thread_t new) {
179 if (pmc_thread_eligible(old) || pmc_thread_eligible(new)) {
180 pmc_swi(old, new);
184 void ml_get_csw_threads(thread_t *old, thread_t *new) {
185 *old = current_cpu_datap()->csw_old_thread;
193 ml_kpc_cswitch(thread_t old, thread_t new)
199 kpc_switch_context( old, new );
205 ml_kperf_cswitch(thread_t old, thread_t new)
211 kperf_switch_context( old, new );
217 ml_hv_cswitch(thread_t old, thread_t new)
219 if (old->hv_thread_target)
220 hv_callbacks.preempt(old->hv_thread_target);
461 * Save the old thread`s kernel state or continuation,
466 thread_t old,
471 assert(current_cpu_datap()->cpu_active_stack == old->kernel_stack);
474 machine_pmc_cswitch(old, new);
477 ml_kpc_cswitch(old, new);
480 ml_kperf_cswitch(old, new);
485 fpu_save_context(old);
487 old->machine.specFlags &= ~OnProc;
506 PMAP_SWITCH_CONTEXT(old, new, cpu_number());
511 act_machine_switch_pcb(old, new);
514 ml_hv_cswitch(old, new);
517 return(Switch_context(old, continuation, new));
1826 * move a stack from old to new thread
1830 machine_stack_handoff(thread_t old,
1836 assert(old);
1839 machine_pmc_cswitch(old, new);
1842 ml_kpc_cswitch(old, new);
1845 ml_kperf_cswitch(old, new);
1848 stack = old->kernel_stack;
1849 if (stack == old->reserved_stack) {
1851 old->reserved_stack = new->reserved_stack;
1854 old->kernel_stack = 0;
1857 * because old stack is already initialized.
1861 fpu_save_context(old);
1863 old->machine.specFlags &= ~OnProc;
1866 PMAP_SWITCH_CONTEXT(old, new, cpu_number());
1867 act_machine_switch_pcb(old, new);
1870 ml_hv_cswitch(old, new);