Home
last modified time | relevance | path

Searched refs:newlwp (Results 1 – 11 of 11) sorted by relevance

/netbsd-src/sys/rump/librump/rumpkern/
H A Dlwproc.c452 rump_lwproc_switch(struct lwp *newlwp) in rump_lwproc_switch() argument
457 KASSERT(!(l->l_flag & LW_WEXIT) || newlwp); in rump_lwproc_switch()
459 if (__predict_false(newlwp && (newlwp->l_pflag & LP_RUNNING))) in rump_lwproc_switch()
461 newlwp, newlwp->l_proc->p_pid, newlwp->l_lid); in rump_lwproc_switch()
463 if (newlwp == NULL) { in rump_lwproc_switch()
477 newlwp->l_cpu = newlwp->l_target_cpu = l->l_cpu; in rump_lwproc_switch()
478 newlwp->l_mutex = l->l_mutex; in rump_lwproc_switch()
479 newlwp->l_pflag |= LP_RUNNING; in rump_lwproc_switch()
481 lwproc_curlwpop(RUMPUSER_LWP_SET, newlwp); in rump_lwproc_switch()
482 curcpu()->ci_curlwp = newlwp; in rump_lwproc_switch()
[all …]
H A Dthreads.c49 struct lwp *newlwp; member
64 struct lwp *l = td->newlwp; in threadbouncer()
114 if (td->newlwp == l) { in rump_thread_allow()
196 td->newlwp = l = rump__lwproc_alloclwp(&proc0); in kthread_create()
288 struct lwp *l = td->newlwp; in lwpbouncer()
336 td->newlwp = l = rump__lwproc_alloclwp(p2); in lwp_create()
358 if (td->newlwp == l) { in lwp_exit()
/netbsd-src/sys/arch/usermode/dev/
H A Dcpu.c214 cpu_switchto_atomic(lwp_t *oldlwp, lwp_t *newlwp) in cpu_switchto_atomic() argument
222 newpcb = lwp_getpcb(newlwp); in cpu_switchto_atomic()
232 curlwp = newlwp; in cpu_switchto_atomic()
244 cpu_switchto(lwp_t *oldlwp, lwp_t *newlwp, bool returning) in cpu_switchto() argument
247 struct pcb *newpcb = lwp_getpcb(newlwp); in cpu_switchto()
256 newlwp ? newlwp->l_name : "none", in cpu_switchto()
257 newlwp ? newlwp->l_proc->p_pid : -1, in cpu_switchto()
258 newlwp ? newlwp->l_lid : -1); in cpu_switchto()
275 (void *) newlwp->l_private, in cpu_switchto()
282 KASSERT(newlwp); in cpu_switchto()
[all …]
/netbsd-src/sys/arch/ia64/ia64/
H A Dvm_machdep.c72 cpu_switchto(lwp_t *oldlwp, lwp_t *newlwp, bool returning) in cpu_switchto() argument
76 struct pcb *newpcb = lwp_getpcb(newlwp); in cpu_switchto()
80 KASSERT(newlwp != NULL); in cpu_switchto()
101 ci->ci_curlwp = newlwp; in cpu_switchto()
/netbsd-src/sys/arch/x86/x86/
H A Ddbregs.c295 x86_dbregs_switch(struct lwp *oldlwp, struct lwp *newlwp) in x86_dbregs_switch() argument
301 newpcb = lwp_getpcb(newlwp); in x86_dbregs_switch()
315 x86_dbregs_restore(newlwp); in x86_dbregs_switch()
H A Dsvs.c643 svs_lwp_switch(struct lwp *oldlwp, struct lwp *newlwp) in svs_lwp_switch() argument
652 if (newlwp->l_flag & LW_SYSTEM) { in svs_lwp_switch()
667 pcb = lwp_getpcb(newlwp); in svs_lwp_switch()
H A Dfpu.c313 fpu_switch(struct lwp *oldlwp, struct lwp *newlwp) in fpu_switch() argument
328 KASSERT(!(newlwp->l_md.md_flags & MDL_FPU_IN_CPU)); in fpu_switch()
H A Dspectre.c960 speculation_barrier(struct lwp *oldlwp, struct lwp *newlwp) in speculation_barrier() argument
971 if ((oldlwp->l_flag & LW_SYSTEM) && (newlwp->l_flag & LW_SYSTEM)) in speculation_barrier()
/netbsd-src/sys/arch/vax/include/
H A Dmacros.h336 cpu_switchto(struct lwp *oldlwp, struct lwp *newlwp, bool returning) in cpu_switchto() argument
346 : "g" (oldlwp), "g" (newlwp) in cpu_switchto()
/netbsd-src/sys/arch/sparc/sparc/
H A Dlocore.s4849 mov %i1, %g3 ! and newlwp
5027 ! newlwp in %l2, oldlwp already in %o0
/netbsd-src/sys/arch/sparc64/sparc64/
H A Dlocore.s6952 ! newlwp in %l2, oldlwp in %o0