/freebsd-11-stable/sys/riscv/riscv/ |
H A D | vm_machdep.c | 63 cpu_fork(struct thread *td1, struct proc *p2, struct thread *td2, int flags) argument 71 pcb2 = (struct pcb *)(td2->td_kstack + 72 td2->td_kstack_pages * PAGE_SIZE) - 1; 74 td2->td_pcb = pcb2; 77 td2->td_pcb->pcb_l1addr = 78 vtophys(vmspace_pmap(td2->td_proc->p_vmspace)->pm_l1); 91 td2->td_frame = tf; 94 td2->td_pcb->pcb_s[0] = (uintptr_t)fork_return; 95 td2->td_pcb->pcb_s[1] = (uintptr_t)td2; [all...] |
/freebsd-11-stable/sys/arm64/arm64/ |
H A D | vm_machdep.c | 67 cpu_fork(struct thread *td1, struct proc *p2, struct thread *td2, int flags) argument 88 pcb2 = (struct pcb *)(td2->td_kstack + 89 td2->td_kstack_pages * PAGE_SIZE) - 1; 91 td2->td_pcb = pcb2; 94 td2->td_pcb->pcb_l0addr = 95 vtophys(vmspace_pmap(td2->td_proc->p_vmspace)->pm_l0); 103 td2->td_frame = tf; 106 td2->td_pcb->pcb_x[8] = (uintptr_t)fork_return; 107 td2->td_pcb->pcb_x[9] = (uintptr_t)td2; [all...] |
/freebsd-11-stable/sys/fs/procfs/ |
H A D | procfs_dbregs.c | 67 * 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 D | procfs_fpregs.c | 61 * 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 D | procfs_regs.c | 61 * 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-11-stable/sys/arm/arm/ |
H A D | vm_machdep.c | 96 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; 110 pmap_use_minicache(td2->td_kstack, td2->td_kstack_pages * PAGE_SIZE); 121 td2->td_pcb = pcb2; 131 td2->td_frame = (struct trapframe *)pcb2 - 1; 132 *td2->td_frame = *td1->td_frame; 141 pcb2->pcb_regs.sf_r5 = (register_t)td2; 143 pcb2->pcb_regs.sf_sp = STACKALIGN(td2 [all...] |
/freebsd-11-stable/sys/compat/linux/ |
H A D | linux_fork.c | 73 struct thread *td2; local 86 td2 = FIRST_THREAD_IN_PROC(p2); 88 linux_proc_init(td, td2, 0); 95 thread_lock(td2); 96 TD_SET_CAN_RUN(td2); 97 sched_add(td2, SRQ_BORING); 98 thread_unlock(td2); 109 struct thread *td2; local 122 td2 = FIRST_THREAD_IN_PROC(p2); 124 linux_proc_init(td, td2, 146 struct thread *td2; local [all...] |
H A D | linux_futex.c | 1156 struct thread *td2; local 1166 td2 = tdfind(args->pid, -1); 1167 if (td2 == NULL) { 1172 if (SV_PROC_ABI(td2->td_proc) != SV_ABI_LINUX) { 1175 PROC_UNLOCK(td2->td_proc); 1179 em = em_find(td2); 1184 p_candebug(td, td2->td_proc)) { 1185 PROC_UNLOCK(td2->td_proc); 1193 PROC_UNLOCK(td2->td_proc);
|
/freebsd-11-stable/sys/kern/ |
H A D | sys_process.c | 679 * PROC_READ(regs, td2, addr); 681 * proc_read_regs(td2, addr); 683 * proc_read_regs32(td2, addr); 718 struct thread *td2 = NULL, *td3; local 766 td2 = tdfind(pid, -1); 767 if (td2 == NULL) { 772 p = td2->td_proc; 800 td2 = p->p_xthread; 802 td2 = FIRST_THREAD_IN_PROC(p); 804 tid = td2 [all...] |
H A D | kern_thread.c | 519 struct thread *td2; local 555 td2 = FIRST_THREAD_IN_PROC(p); 556 sched_exit_thread(td2, td); 714 weed_inhib(int mode, struct thread *td2, struct proc *p) argument 720 THREAD_LOCK_ASSERT(td2, MA_OWNED); 725 if (TD_IS_SUSPENDED(td2)) 726 wakeup_swapper |= thread_unsuspend_one(td2, p, true); 727 if (TD_ON_SLEEPQ(td2) && (td2->td_flags & TDF_SINTR) != 0) 728 wakeup_swapper |= sleepq_abort(td2, EINT 779 struct thread *td2; local 897 ("td %p is not suspended", td2)); local [all...] |
H A D | kern_fork.c | 395 do_fork(struct thread *td, struct fork_req *fr, struct proc *p2, struct thread *td2, argument 419 tidhash_add(td2); 492 bzero(&td2->td_startzero, 494 td2->td_sleeptimo = 0; 495 td2->td_vslock_sz = 0; 496 bzero(&td2->td_si, sizeof(td2->td_si)); 498 bcopy(&td->td_startcopy, &td2->td_startcopy, 500 td2->td_sa = td->td_sa; 502 bcopy(&p2->p_comm, &td2 837 struct thread *td2; local [all...] |
H A D | tty_info.c | 101 thread_compare(struct thread *td, struct thread *td2) argument 118 thread_lock(td2); 119 runb = TD_IS_RUNNING(td2) | TD_ON_RUNQ(td2); 120 estb = sched_pctcpu(td2); 121 slpb = td2->td_flags & TDF_SINTR; 122 thread_unlock(td2); 153 return (td < td2);
|
H A D | kern_switch.c | 444 struct thread *td2; local 445 td2 = td = TAILQ_FIRST(rqh); 447 while (count-- && td2) { 448 if (td2->td_lastcpu == cpu) { 449 td = td2; 452 td2 = TAILQ_NEXT(td2, td_runq);
|
H A D | kern_sig.c | 2505 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 D | subr_turnstile.c | 291 struct thread *td1, *td2; local 317 td2 = TAILQ_NEXT(td, td_lockq); 319 (td2 != NULL && td->td_priority > td2->td_priority)) {
|
/freebsd-11-stable/sys/powerpc/powerpc/ |
H A D | vm_machdep.c | 108 cpu_fork(struct thread *td1, struct proc *p2, struct thread *td2, int flags) argument 122 pcb = (struct pcb *)((td2->td_kstack + 123 td2->td_kstack_pages * PAGE_SIZE - sizeof(struct pcb)) & ~0x2fUL); 124 td2->td_pcb = pcb; 142 td2->td_frame = tf; 150 cf->cf_arg0 = (register_t)td2; 167 td2->td_md.md_spinlock_count = 1; 168 td2->td_md.md_saved_msr = PSL_KERNSET;
|
/freebsd-11-stable/cddl/contrib/opensolaris/tools/ctf/cvt/ |
H A D | tdata.c | 458 /* 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-11-stable/sys/amd64/amd64/ |
H A D | vm_machdep.c | 142 cpu_fork(struct thread *td1, struct proc *p2, struct thread *td2, int flags) argument 169 pcb2 = get_pcb_td(td2); 170 td2->td_pcb = pcb2; 189 td2->td_frame = (struct trapframe *)td2->td_pcb - 1; 190 bcopy(td1->td_frame, td2->td_frame, sizeof(struct trapframe)); 192 td2->td_frame->tf_rax = 0; /* Child returns zero */ 193 td2->td_frame->tf_rflags &= ~PSL_C; /* success */ 194 td2->td_frame->tf_rdx = 1; 205 td2 [all...] |
/freebsd-11-stable/sys/i386/i386/ |
H A D | vm_machdep.c | 154 cpu_fork(struct thread *td1, struct proc *p2, struct thread *td2, int flags) argument 191 pcb2 = get_pcb_td(td2); 192 td2->td_pcb = pcb2; 212 td2->td_frame = (struct trapframe *)((caddr_t)td2->td_pcb - 16) - 1; 213 bcopy(td1->td_frame, td2->td_frame, sizeof(struct trapframe)); 215 td2->td_frame->tf_eax = 0; /* Child returns zero */ 216 td2->td_frame->tf_eflags &= ~PSL_C; /* success */ 217 td2->td_frame->tf_edx = 1; 228 td2 [all...] |
/freebsd-11-stable/sys/mips/mips/ |
H A D | vm_machdep.c | 98 cpu_fork(struct thread *td1, struct proc *p2, struct thread *td2,int flags) argument 111 pcb2 = td2->td_pcb; 124 td2->td_md.md_flags = td1->td_md.md_flags & MDTD_FPUSED; 129 td2->td_frame->v0 = 0; 130 td2->td_frame->v1 = 1; 131 td2->td_frame->a3 = 0; 138 pcb2->pcb_context[PCB_REG_SP] = (register_t)(((vm_offset_t)td2->td_pcb & 141 pcb2->pcb_context[PCB_REG_S1] = (register_t)(intptr_t)td2; 142 pcb2->pcb_context[PCB_REG_S2] = (register_t)(intptr_t)td2->td_frame; 152 td2 [all...] |
/freebsd-11-stable/lib/libc/tests/nss/ |
H A D | testutil.h | 64 #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-11-stable/sys/sparc64/sparc64/ |
H A D | vm_machdep.c | 235 cpu_fork(struct thread *td1, struct proc *p2, struct thread *td2, int flags) argument 256 pcb2 = (struct pcb *)((td2->td_kstack + td2->td_kstack_pages * 258 td2->td_pcb = pcb2; 311 td2->td_frame = tf; 314 fp->fr_local[1] = (u_long)td2; 322 td2->td_md.md_spinlock_count = 1; 323 td2->td_md.md_saved_pil = 0;
|
/freebsd-11-stable/sys/i386/linux/ |
H A D | linux_ptrace.c | 333 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-11-stable/sys/vm/ |
H A D | vm_glue.c | 531 vm_forkproc(struct thread *td, struct proc *p2, struct thread *td2, argument 550 cpu_fork(td, p2, td2, flags); 573 cpu_fork(td, p2, td2, flags);
|
/freebsd-11-stable/contrib/gcc/cp/ |
H A D | rtti.c | 592 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
|