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

12

/freebsd-10.0-release/sys/ia64/ia64/
H A Dvm_machdep.c262 cpu_fork(struct thread *td1, struct proc *p2 __unused, struct thread *td2, argument
292 stackp = (char *)(td2->td_kstack + td2->td_kstack_pages * PAGE_SIZE);
295 td2->td_pcb = (struct pcb *)stackp;
296 bcopy(td1->td_pcb, td2->td_pcb, sizeof(struct pcb));
299 td2->td_frame = (struct trapframe *)stackp;
300 bcopy(td1->td_frame, td2->td_frame, sizeof(struct trapframe));
301 td2->td_frame->tf_length = sizeof(struct trapframe);
302 ndirty = td2->td_frame->tf_special.ndirty +
303 (td2
[all...]
/freebsd-10.0-release/sys/compat/linux/
H A Dlinux_fork.c71 struct thread *td2; local
89 td2 = FIRST_THREAD_IN_PROC(p2);
94 thread_lock(td2);
95 TD_SET_CAN_RUN(td2);
96 sched_add(td2, SRQ_BORING);
97 thread_unlock(td2);
107 struct thread *td2; local
129 td2 = FIRST_THREAD_IN_PROC(p2);
134 thread_lock(td2);
135 TD_SET_CAN_RUN(td2);
153 struct thread *td2; local
[all...]
/freebsd-10.0-release/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) {
117 error = PROC(read, dbregs, td2, &r);
128 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
106 td2 = FIRST_THREAD_IN_PROC(p);
109 if (SV_PROC_FLAG(td2->td_proc, SV_ILP32) == 0) {
116 error = PROC(read, fpregs, td2, &r);
127 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
106 td2 = FIRST_THREAD_IN_PROC(p);
109 if ((SV_PROC_FLAG(td2->td_proc, SV_ILP32)) == 0) {
116 error = PROC(read, regs, td2, &r);
127 error = PROC(write, regs, td2, &r);
/freebsd-10.0-release/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-10.0-release/sys/amd64/amd64/
H A Dvm_machdep.c148 cpu_fork(td1, p2, td2, flags)
151 struct thread *td2;
179 pcb2 = get_pcb_td(td2);
180 td2->td_pcb = pcb2;
199 td2->td_frame = (struct trapframe *)td2->td_pcb - 1;
200 bcopy(td1->td_frame, td2->td_frame, sizeof(struct trapframe));
202 td2->td_frame->tf_rax = 0; /* Child returns zero */
203 td2->td_frame->tf_rflags &= ~PSL_C; /* success */
204 td2
[all...]
/freebsd-10.0-release/sys/kern/
H A Dsys_process.c612 * PROC_READ(regs, td2, addr);
614 * proc_read_regs(td2, addr);
616 * proc_read_regs32(td2, addr);
638 struct thread *td2 = NULL, *td3; local
683 td2 = tdfind(pid, -1);
684 if (td2 == NULL) {
689 p = td2->td_proc;
717 td2 = p->p_xthread;
719 td2 = FIRST_THREAD_IN_PROC(p);
721 tid = td2
[all...]
H A Dkern_fork.c364 do_fork(struct thread *td, int flags, struct proc *p2, struct thread *td2, argument
394 tidhash_add(td2);
464 bzero(&td2->td_startzero,
467 bcopy(&td->td_startcopy, &td2->td_startcopy,
470 bcopy(&p2->p_comm, &td2->td_name, sizeof(td2->td_name));
471 td2->td_sigstk = td->td_sigstk;
472 td2->td_flags = TDF_INMEM;
473 td2->td_lend_user_pri = PRI_MAX;
476 td2
756 struct thread *td2; local
[all...]
H A Dtty_info.c101 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 Dkern_thread.c399 struct thread *td2; local
437 td2 = FIRST_THREAD_IN_PROC(p);
438 sched_exit_thread(td2, td);
617 struct thread *td2; local
651 FOREACH_THREAD_IN_PROC(p, td2) {
652 if (td2 == td)
654 thread_lock(td2);
655 td2->td_flags |= TDF_ASTPENDING | TDF_NEEDSUSPCHK;
656 if (TD_IS_INHIBITED(td2)) {
659 if (TD_IS_SUSPENDED(td2))
[all...]
H A Dkern_switch.c416 struct thread *td2; local
417 td2 = td = TAILQ_FIRST(rqh);
419 while (count-- && td2) {
420 if (td2->td_lastcpu == cpu) {
421 td = td2;
424 td2 = TAILQ_NEXT(td2, td_runq);
H A Dkern_sig.c2394 struct thread *td2; local
2399 FOREACH_THREAD_IN_PROC(p, td2) {
2400 thread_lock(td2);
2401 td2->td_flags |= TDF_ASTPENDING | TDF_NEEDSUSPCHK;
2402 if ((TD_IS_SLEEPING(td2) || TD_IS_SWAPPED(td2)) &&
2403 (td2->td_flags & TDF_SINTR)) {
2404 if (td2->td_flags & TDF_SBDRY) {
2410 KASSERT(!TD_IS_SUSPENDED(td2),
2412 } else if (!TD_IS_SUSPENDED(td2)) {
[all...]
H A Dkern_ktrace.c545 struct thread *td2; local
548 td2 = FIRST_THREAD_IN_PROC(p);
549 req = ktr_getrequest_entered(td2, KTR_PROCCTOR);
554 ktr_enqueuerequest(td2, req);
/freebsd-10.0-release/sys/powerpc/aim/
H A Dvm_machdep.c155 cpu_fork(struct thread *td1, struct proc *p2, struct thread *td2, int flags) argument
169 pcb = (struct pcb *)((td2->td_kstack +
170 td2->td_kstack_pages * PAGE_SIZE - sizeof(struct pcb)) & ~0x2fUL);
171 td2->td_pcb = pcb;
189 td2->td_frame = tf;
197 cf->cf_arg0 = (register_t)td2;
211 td2->td_md.md_spinlock_count = 1;
212 td2->td_md.md_saved_msr = PSL_KERNSET;
/freebsd-10.0-release/sys/powerpc/booke/
H A Dvm_machdep.c176 cpu_fork(struct thread *td1, struct proc *p2, struct thread *td2, int flags) argument
193 pcb = (struct pcb *)((td2->td_kstack +
194 td2->td_kstack_pages * PAGE_SIZE - sizeof(struct pcb)) & ~0x3fU);
195 td2->td_pcb = pcb;
213 td2->td_frame = tf;
218 cf->cf_arg0 = (register_t)td2;
225 td2->td_md.md_spinlock_count = 1;
226 td2->td_md.md_saved_msr = PSL_KERNSET;
/freebsd-10.0-release/sys/mips/mips/
H A Dvm_machdep.c134 struct thread *td2,int flags)
147 pcb2 = td2->td_pcb;
160 td2->td_md.md_flags = td1->td_md.md_flags & MDTD_FPUSED;
165 td2->td_frame->v0 = 0;
166 td2->td_frame->v1 = 1;
167 td2->td_frame->a3 = 0;
174 pcb2->pcb_context[PCB_REG_SP] = (register_t)(((vm_offset_t)td2->td_pcb &
177 pcb2->pcb_context[PCB_REG_S1] = (register_t)(intptr_t)td2;
178 pcb2->pcb_context[PCB_REG_S2] = (register_t)(intptr_t)td2->td_frame;
188 td2
133 cpu_fork(register struct thread *td1,register struct proc *p2, struct thread *td2,int flags) argument
[all...]
/freebsd-10.0-release/tools/regression/lib/libc/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 assert(td2 != NULL); \
140 e2 = STAILQ_FIRST(&td2->snapshot_data); \
319 #define DO_2PASS_TEST(ent, td1, td2, f, mdata) \
320 __##ent##_2pass_test(td1, td2, f, mdata)
325 struct ent##_test_data *td2, \
331 rv = __##ent##_test_data_compare(td1, td2, cmp_func, cmp_mdata); \
/freebsd-10.0-release/sys/i386/i386/
H A Dvm_machdep.c161 cpu_fork(td1, p2, td2, flags)
164 struct thread *td2;
204 pcb2 = (struct pcb *)(td2->td_kstack +
205 td2->td_kstack_pages * PAGE_SIZE) - 1;
206 td2->td_pcb = pcb2;
224 td2->td_frame = (struct trapframe *)((caddr_t)td2->td_pcb - 16) - 1;
225 bcopy(td1->td_frame, td2->td_frame, sizeof(struct trapframe));
227 td2->td_frame->tf_eax = 0; /* Child returns zero */
228 td2
[all...]
/freebsd-10.0-release/sys/arm/arm/
H A Dvm_machdep.c130 struct thread *td2, int flags)
139 pcb2 = (struct pcb *)(td2->td_kstack + td2->td_kstack_pages * PAGE_SIZE) - 1;
142 pmap_use_minicache(td2->td_kstack, td2->td_kstack_pages * PAGE_SIZE);
145 td2->td_pcb = pcb2;
149 pcb2->un_32.pcb32_und_sp = td2->td_kstack + USPACE_UNDEF_STACK_TOP;
150 pcb2->un_32.pcb32_sp = td2->td_kstack +
152 pmap_activate(td2);
153 td2
129 cpu_fork(register struct thread *td1, register struct proc *p2, struct thread *td2, int flags) argument
[all...]
/freebsd-10.0-release/sys/sparc64/sparc64/
H A Dvm_machdep.c270 cpu_fork(struct thread *td1, struct proc *p2, struct thread *td2, int flags) argument
291 pcb2 = (struct pcb *)((td2->td_kstack + td2->td_kstack_pages *
293 td2->td_pcb = pcb2;
346 td2->td_frame = tf;
349 fp->fr_local[1] = (u_long)td2;
357 td2->td_md.md_spinlock_count = 1;
358 td2->td_md.md_saved_pil = 0;
/freebsd-10.0-release/sys/i386/linux/
H A Dlinux_ptrace.c343 struct thread *td2; local
395 td2 = FIRST_THREAD_IN_PROC(p);
396 error = linux_proc_read_fpxregs(td2, &r.fpxreg);
406 td2 = FIRST_THREAD_IN_PROC(p);
407 error = linux_proc_write_fpxregs(td2, &r.fpxreg);
/freebsd-10.0-release/contrib/atf/atf-run/
H A Dfs_test.cpp77 temp_dir td2(tmpl);
79 t2 = td2.get_path();
/freebsd-10.0-release/sys/vm/
H A Dvm_glue.c568 vm_forkproc(td, p2, td2, vm2, flags)
571 struct thread *td2;
591 cpu_fork(td, p2, td2, flags);
614 cpu_fork(td, p2, td2, flags);
/freebsd-10.0-release/contrib/gcc/cp/
H A Drtti.c591 tree result, td2, td3, elems;
632 td2 = get_tinfo_decl (target_type);
633 mark_used (td2);
634 td2 = build_unary_op (ADDR_EXPR, td2, 0);
652 (NULL_TREE, td2, tree_cons
589 tree result, td2, td3, elems; local

Completed in 211 milliseconds

12