Searched refs:td2 (Results 1 - 25 of 28) sorted by relevance

12

/freebsd-12-stable/sys/arm64/arm64/
H A Dvm_machdep.c66 cpu_fork(struct thread *td1, struct proc *p2, struct thread *td2, int flags) argument
87 pcb2 = (struct pcb *)(td2->td_kstack +
88 td2->td_kstack_pages * PAGE_SIZE) - 1;
90 td2->td_pcb = pcb2;
93 td2->td_proc->p_md.md_l0addr =
94 vtophys(vmspace_pmap(td2->td_proc->p_vmspace)->pm_l0);
102 td2->td_frame = tf;
105 td2->td_pcb->pcb_x[8] = (uintptr_t)fork_return;
106 td2->td_pcb->pcb_x[9] = (uintptr_t)td2;
[all...]
/freebsd-12-stable/sys/fs/procfs/
H A Dprocfs_dbregs.c67 * PROC(write, dbregs, td2, &r) becomes
68 * proc_write_dbregs(td2, &r) or
69 * proc_write_dbregs32(td2, &r32)
91 struct thread *td2; local
107 td2 = FIRST_THREAD_IN_PROC(p);
110 if (SV_PROC_FLAG(td2->td_proc, SV_ILP32) == 0) {
119 error = PROC(read, dbregs, td2, &r);
130 error = PROC(write, dbregs, td2, &r);
H A Dprocfs_fpregs.c61 * PROC(write, fpregs, td2, &r) becomes
62 * proc_write_fpregs(td2, &r) or
63 * proc_write_fpregs32(td2, &r32)
85 struct thread *td2; local
105 td2 = FIRST_THREAD_IN_PROC(p);
108 if (SV_PROC_FLAG(td2->td_proc, SV_ILP32) == 0) {
117 error = PROC(read, fpregs, td2, &r);
128 error = PROC(write, fpregs, td2, &r);
H A Dprocfs_regs.c61 * PROC(write, regs, td2, &r) becomes
62 * proc_write_regs(td2, &r) or
63 * proc_write_regs32(td2, &r32)
85 struct thread *td2; local
105 td2 = FIRST_THREAD_IN_PROC(p);
108 if ((SV_PROC_FLAG(td2->td_proc, SV_ILP32)) == 0) {
117 error = PROC(read, regs, td2, &r);
128 error = PROC(write, regs, td2, &r);
/freebsd-12-stable/sys/kern/
H A Dsys_process.c702 * PROC_READ(regs, td2, addr);
704 * proc_read_regs(td2, addr);
706 * proc_read_regs32(td2, addr);
740 struct thread *td2 = NULL, *td3; local
793 td2 = tdfind(pid, -1);
794 if (td2 == NULL) {
799 p = td2->td_proc;
827 td2 = p->p_xthread;
829 td2 = FIRST_THREAD_IN_PROC(p);
831 tid = td2
[all...]
H A Dkern_thread.c518 struct thread *td2; local
554 td2 = FIRST_THREAD_IN_PROC(p);
555 sched_exit_thread(td2, td);
716 weed_inhib(int mode, struct thread *td2, struct proc *p) argument
722 THREAD_LOCK_ASSERT(td2, MA_OWNED);
727 if (TD_IS_SUSPENDED(td2))
728 wakeup_swapper |= thread_unsuspend_one(td2, p, true);
729 if (TD_ON_SLEEPQ(td2) && (td2->td_flags & TDF_SINTR) != 0)
730 wakeup_swapper |= sleepq_abort(td2, EINT
781 struct thread *td2; local
899 ("td %p is not suspended", td2)); local
[all...]
H A Dkern_fork.c396 do_fork(struct thread *td, struct fork_req *fr, struct proc *p2, struct thread *td2, argument
439 tidhash_add(td2);
490 bzero(&td2->td_startzero,
492 td2->td_pflags2 = 0;
493 td2->td_errno = 0;
495 bcopy(&td->td_startcopy, &td2->td_startcopy,
498 bcopy(&p2->p_comm, &td2->td_name, sizeof(td2->td_name));
499 td2->td_sigstk = td->td_sigstk;
500 td2
828 struct thread *td2; local
[all...]
H A Dtty_info.c103 thread_compare(struct thread *td, struct thread *td2) argument
120 thread_lock(td2);
121 runb = TD_IS_RUNNING(td2) | TD_ON_RUNQ(td2);
122 estb = sched_pctcpu(td2);
123 slpb = td2->td_flags & TDF_SINTR;
124 thread_unlock(td2);
155 return (td < td2);
H A Dkern_switch.c446 struct thread *td2; local
447 td2 = td = TAILQ_FIRST(rqh);
449 while (count-- && td2) {
450 if (td2->td_lastcpu == cpu) {
451 td = td2;
454 td2 = TAILQ_NEXT(td2, td_runq);
H A Dkern_sig.c2505 struct thread *td2; local
2513 FOREACH_THREAD_IN_PROC(p, td2) {
2514 thread_lock(td2);
2515 td2->td_flags |= TDF_ASTPENDING | TDF_NEEDSUSPCHK;
2516 if ((TD_IS_SLEEPING(td2) || TD_IS_SWAPPED(td2)) &&
2517 (td2->td_flags & TDF_SINTR)) {
2518 if (td2->td_flags & TDF_SBDRY) {
2525 KASSERT(!TD_IS_SUSPENDED(td2),
2527 if (TD_SBDRY_INTR(td2))
2557 struct thread *td2; local
[all...]
H A Dsubr_turnstile.c293 struct thread *td1, *td2; local
319 td2 = TAILQ_NEXT(td, td_lockq);
321 (td2 != NULL && td->td_priority > td2->td_priority)) {
/freebsd-12-stable/sys/compat/linux/
H A Dlinux_fork.c75 struct thread *td2; local
83 td2 = FIRST_THREAD_IN_PROC(p2);
85 linux_proc_init(td, td2, 0);
92 thread_lock(td2);
93 TD_SET_CAN_RUN(td2);
94 sched_add(td2, SRQ_BORING);
95 thread_unlock(td2);
106 struct thread *td2; local
114 td2 = FIRST_THREAD_IN_PROC(p2);
116 linux_proc_init(td, td2,
138 struct thread *td2; local
[all...]
H A Dlinux_futex.c1126 struct thread *td2; local
1136 td2 = tdfind(args->pid, -1);
1137 if (td2 == NULL) {
1142 if (SV_PROC_ABI(td2->td_proc) != SV_ABI_LINUX) {
1145 PROC_UNLOCK(td2->td_proc);
1149 em = em_find(td2);
1154 p_candebug(td, td2->td_proc)) {
1155 PROC_UNLOCK(td2->td_proc);
1163 PROC_UNLOCK(td2->td_proc);
/freebsd-12-stable/sys/riscv/riscv/
H A Dvm_machdep.c68 cpu_fork(struct thread *td1, struct proc *p2, struct thread *td2, int flags) argument
78 pcb2 = (struct pcb *)(td2->td_kstack +
79 td2->td_kstack_pages * PAGE_SIZE) - 1;
81 td2->td_pcb = pcb2;
96 td2->td_frame = tf;
99 td2->td_pcb->pcb_s[0] = (uintptr_t)fork_return;
100 td2->td_pcb->pcb_s[1] = (uintptr_t)td2;
101 td2->td_pcb->pcb_ra = (uintptr_t)fork_trampoline;
102 td2
[all...]
/freebsd-12-stable/sys/powerpc/powerpc/
H A Dvm_machdep.c110 cpu_fork(struct thread *td1, struct proc *p2, struct thread *td2, int flags) argument
124 pcb = (struct pcb *)((td2->td_kstack +
125 td2->td_kstack_pages * PAGE_SIZE - sizeof(struct pcb)) & ~0x2fUL);
126 td2->td_pcb = pcb;
144 td2->td_frame = tf;
152 cf->cf_arg0 = (register_t)td2;
169 td2->td_md.md_spinlock_count = 1;
170 td2->td_md.md_saved_msr = psl_kernset;
/freebsd-12-stable/sys/arm/arm/
H A Dvm_machdep.c96 cpu_fork(struct thread *td1, struct proc *p2, struct thread *td2, int flags) argument
107 (td2->td_kstack + td2->td_kstack_pages * PAGE_SIZE) - 1;
116 td2->td_pcb = pcb2;
126 td2->td_frame = (struct trapframe *)pcb2 - 1;
127 *td2->td_frame = *td1->td_frame;
136 pcb2->pcb_regs.sf_r5 = (register_t)td2;
138 pcb2->pcb_regs.sf_sp = STACKALIGN(td2->td_frame);
146 tf = td2->td_frame;
153 td2
[all...]
/freebsd-12-stable/cddl/contrib/opensolaris/tools/ctf/cvt/
H A Dtdata.c458 /* Merge td2 into td1. td2 is destroyed by the merge */
460 tdata_merge(tdata_t *td1, tdata_t *td2) argument
462 td1->td_curemark = MAX(td1->td_curemark, td2->td_curemark);
463 td1->td_curvgen = MAX(td1->td_curvgen, td2->td_curvgen);
464 td1->td_nextid = MAX(td1->td_nextid, td2->td_nextid);
466 hash_merge(td1->td_iihash, td2->td_iihash);
468 /* Add td2's type tree to the hashes */
469 tdata_build_hashes_common(td1, td2->td_iihash);
471 list_concat(&td1->td_fwdlist, td2
[all...]
/freebsd-12-stable/sys/amd64/amd64/
H A Dvm_machdep.c146 cpu_fork(struct thread *td1, struct proc *p2, struct thread *td2, int flags) argument
173 set_top_of_stack_td(td2);
174 td2->td_pcb = pcb2 = get_pcb_td(td2);
197 td2->td_frame = (struct trapframe *)td2->td_md.md_stack_base - 1;
198 bcopy(td1->td_frame, td2->td_frame, sizeof(struct trapframe));
200 td2->td_frame->tf_rax = 0; /* Child returns zero */
201 td2->td_frame->tf_rflags &= ~PSL_C; /* success */
202 td2
[all...]
/freebsd-12-stable/sys/i386/i386/
H A Dvm_machdep.c147 cpu_fork(struct thread *td1, struct proc *p2, struct thread *td2, int flags) argument
184 pcb2 = get_pcb_td(td2);
185 td2->td_pcb = pcb2;
209 td2->td_frame = (struct trapframe *)((caddr_t)td2->td_pcb -
211 bcopy(td1->td_frame, td2->td_frame, sizeof(struct trapframe));
213 td2->td_frame->tf_eax = 0; /* Child returns zero */
214 td2->td_frame->tf_eflags &= ~PSL_C; /* success */
215 td2->td_frame->tf_edx = 1;
226 td2
[all...]
/freebsd-12-stable/sys/mips/mips/
H A Dvm_machdep.c91 cpu_fork(struct thread *td1, struct proc *p2, struct thread *td2,int flags) argument
104 pcb2 = td2->td_pcb;
117 td2->td_md.md_flags = td1->td_md.md_flags & MDTD_FPUSED;
122 td2->td_frame->v0 = 0;
123 td2->td_frame->v1 = 1;
124 td2->td_frame->a3 = 0;
131 pcb2->pcb_context[PCB_REG_SP] = (register_t)(((vm_offset_t)td2->td_pcb &
134 pcb2->pcb_context[PCB_REG_S1] = (register_t)(intptr_t)td2;
135 pcb2->pcb_context[PCB_REG_S2] = (register_t)(intptr_t)td2->td_frame;
145 td2
[all...]
/freebsd-12-stable/lib/libc/tests/nss/
H A Dtestutil.h64 #define TEST_DATA_COMPARE(ent, td1, td2, fcmp, mdata)\
65 __##ent##_test_data_compare(td1, td2, fcmp, mdata);
129 __##ent##_test_data_compare(struct ent##_test_data *td1, struct ent##_test_data *td2,\
136 ATF_REQUIRE(td2 != NULL); \
140 e2 = STAILQ_FIRST(&td2->snapshot_data); \
316 #define DO_2PASS_TEST(ent, td1, td2, f, mdata) \
317 __##ent##_2pass_test(td1, td2, f, mdata)
322 struct ent##_test_data *td2, \
328 rv = __##ent##_test_data_compare(td1, td2, cmp_func, cmp_mdata);\
/freebsd-12-stable/sys/sparc64/sparc64/
H A Dvm_machdep.c237 cpu_fork(struct thread *td1, struct proc *p2, struct thread *td2, int flags) argument
258 pcb2 = (struct pcb *)((td2->td_kstack + td2->td_kstack_pages *
260 td2->td_pcb = pcb2;
313 td2->td_frame = tf;
316 fp->fr_local[1] = (u_long)td2;
324 td2->td_md.md_spinlock_count = 1;
325 td2->td_md.md_saved_pil = 0;
/freebsd-12-stable/sys/i386/linux/
H A Dlinux_ptrace.c333 struct thread *td2; local
385 td2 = FIRST_THREAD_IN_PROC(p);
386 error = linux_proc_read_fpxregs(td2, &r.fpxreg);
396 td2 = FIRST_THREAD_IN_PROC(p);
397 error = linux_proc_write_fpxregs(td2, &r.fpxreg);
/freebsd-12-stable/sys/vm/
H A Dvm_glue.c533 vm_forkproc(struct thread *td, struct proc *p2, struct thread *td2, argument
553 cpu_fork(td, p2, td2, flags);
561 dset = td2->td_domain.dr_policy;
576 cpu_fork(td, p2, td2, flags);
/freebsd-12-stable/contrib/gcc/cp/
H A Drtti.c592 tree result, td2, td3, elems;
633 td2 = get_tinfo_decl (target_type);
634 mark_used (td2);
635 td2 = build_unary_op (ADDR_EXPR, td2, 0);
653 (NULL_TREE, td2, tree_cons
590 tree result, td2, td3, elems; local

Completed in 401 milliseconds

12