| /freebsd-10-stable/sys/powerpc/powerpc/ |
| D | copyinout.c | 104 if (curthread->td_pcb->pcb_cpu.aim.usr_vsid == slbv) in set_user_sr() 108 curthread->td_pcb->pcb_cpu.aim.usr_segm = in set_user_sr() 110 curthread->td_pcb->pcb_cpu.aim.usr_vsid = slbv; in set_user_sr() 126 if (curthread->td_pcb->pcb_cpu.aim.usr_vsid == vsid) in set_user_sr() 130 curthread->td_pcb->pcb_cpu.aim.usr_segm = in set_user_sr() 132 curthread->td_pcb->pcb_cpu.aim.usr_vsid = vsid; in set_user_sr() 188 td->td_pcb->pcb_onfault = NULL; in copyout() 197 td->td_pcb->pcb_onfault = NULL; in copyout() 208 td->td_pcb->pcb_onfault = NULL; in copyout() 226 td->td_pcb->pcb_onfault = NULL; in copyin() [all …]
|
| D | altivec.c | 53 pcb = td->td_pcb; in enable_vec() 60 td->td_pcb->pcb_veccpu = PCPU_GET(cpuid); in enable_vec() 113 pcb = td->td_pcb; in save_vec()
|
| D | fpu.c | 53 pcb = td->td_pcb; in enable_fpu() 60 td->td_pcb->pcb_fpcpu = PCPU_GET(cpuid); in enable_fpu() 114 pcb = td->td_pcb; in save_fpu()
|
| D | exec_machdep.c | 371 pcb = td->td_pcb; in grab_mcontext() 445 pcb = td->td_pcb; in set_mcontext() 563 td->td_pcb->pcb_flags = 0; in exec_setregs() 593 td->td_pcb->pcb_flags = 0; in ppc32_setregs() 620 pcb = td->td_pcb; in fill_fpregs() 653 pcb = td->td_pcb; in set_fpregs() 930 td->td_pcb = pcb; in cpu_thread_alloc() 957 pcb2 = td->td_pcb; in cpu_set_upcall() 960 bcopy(td0->td_pcb, pcb2, sizeof(*pcb2)); in cpu_set_upcall() 1031 td->td_pcb->pcb_flags = 0; in cpu_set_upcall_kse()
|
| /freebsd-10-stable/sys/ia64/ia64/ |
| D | highfp.c | 69 pcb = td->td_pcb; in ia64_highfp_drop() 92 pcb = td->td_pcb; in ia64_highfp_enable() 105 KASSERT(td1->td_pcb->pcb_fpcpu == pcpup, in ia64_highfp_enable() 107 save_high_fp(&td1->td_pcb->pcb_high_fp); in ia64_highfp_enable() 109 td1->td_pcb->pcb_fpcpu = NULL; in ia64_highfp_enable() 134 pcb = td->td_pcb; in ia64_highfp_save() 167 KASSERT(td->td_pcb->pcb_fpcpu == pcpup, in ia64_highfp_save_ipi() 169 save_high_fp(&td->td_pcb->pcb_high_fp); in ia64_highfp_save_ipi() 171 td->td_pcb->pcb_fpcpu = NULL; in ia64_highfp_save_ipi()
|
| D | vm_machdep.c | 117 td->td_pcb = (struct pcb *)sp; in cpu_thread_alloc() 189 pcb = td->td_pcb; in cpu_set_upcall() 191 bcopy(td0->td_pcb, pcb, sizeof(*pcb)); in cpu_set_upcall() 282 if (savectx(td1->td_pcb) != 0) in cpu_fork() 295 td2->td_pcb = (struct pcb *)stackp; in cpu_fork() 296 bcopy(td1->td_pcb, td2->td_pcb, sizeof(struct pcb)); in cpu_fork() 316 td2->td_pcb->pcb_special.bspstore = td2->td_kstack + ndirty; in cpu_fork() 317 td2->td_pcb->pcb_special.pfs = 0; in cpu_fork() 318 td2->td_pcb->pcb_current_pmap = vmspace_pmap(td2->td_proc->p_vmspace); in cpu_fork() 320 td2->td_pcb->pcb_special.sp = (uintptr_t)stackp - 16; in cpu_fork() [all …]
|
| D | machdep.c | 457 oldpcb = old->td_pcb; in cpu_switch() 464 newpcb = new->td_pcb; in cpu_switch() 497 newpcb = new->td_pcb; in cpu_throw() 890 thread0.td_pcb->pcb_special.sp = in ia64_init() 892 thread0.td_pcb->pcb_special.bspstore = thread0.td_kstack; in ia64_init() 922 ret.bspstore = thread0.td_pcb->pcb_special.bspstore; in ia64_init() 923 ret.sp = thread0.td_pcb->pcb_special.sp; in ia64_init() 1124 pcb = td->td_pcb; in sys_sigreturn() 1257 mc->mc_high_fp = td->td_pcb->pcb_high_fp; in get_mcontext() 1303 td->td_pcb->pcb_high_fp = mc->mc_high_fp; in set_mcontext() [all …]
|
| D | trap.c | 591 if (td != NULL && td->td_pcb->pcb_onfault != 0) { in trap() 593 td->td_pcb->pcb_onfault; in trap() 595 td->td_pcb->pcb_onfault = 0; in trap() 684 if (td != NULL && td->td_pcb->pcb_onfault != 0) { in trap() 686 td->td_pcb->pcb_onfault; in trap() 688 td->td_pcb->pcb_onfault = 0; in trap()
|
| /freebsd-10-stable/sys/arm/arm/ |
| D | vm_machdep.c | 146 td2->td_pcb = pcb2; in cpu_fork() 149 bcopy(td1->td_pcb, pcb2, sizeof(*pcb2)); in cpu_fork() 372 bcopy(td0->td_pcb, td->td_pcb, sizeof(struct pcb)); in cpu_set_upcall() 374 td->td_pcb->pcb_regs.sf_r4 = (register_t)fork_return; in cpu_set_upcall() 375 td->td_pcb->pcb_regs.sf_r5 = (register_t)td; in cpu_set_upcall() 376 td->td_pcb->pcb_regs.sf_lr = (register_t)fork_trampoline; in cpu_set_upcall() 377 td->td_pcb->pcb_regs.sf_sp = STACKALIGN(td->td_frame); in cpu_set_upcall() 429 td->td_pcb = (struct pcb *)(td->td_kstack + td->td_kstack_pages * in cpu_thread_alloc() 436 td->td_frame = (struct trapframe *)((caddr_t)td->td_pcb) - 1; in cpu_thread_alloc() 464 td->td_pcb->pcb_regs.sf_r4 = (register_t)func; /* function */ in cpu_set_fork_handler() [all …]
|
| /freebsd-10-stable/sys/amd64/amd64/ |
| D | vm_machdep.c | 181 td2->td_pcb = pcb2; 184 bcopy(td1->td_pcb, pcb2, sizeof(*pcb2)); 200 td2->td_frame = (struct trapframe *)td2->td_pcb - 1; 297 td->td_pcb->pcb_r12 = (long) func; /* function */ 298 td->td_pcb->pcb_rbx = (long) arg; /* first arg */ 325 pcb = td->td_pcb; in cpu_thread_exit() 339 pcb = td->td_pcb; in cpu_thread_clean() 367 td->td_pcb = pcb = get_pcb_td(td); in cpu_thread_alloc() 410 set_pcb_flags(td->td_pcb, PCB_FULL_IRET); in cpu_set_syscall_retval() 436 pcb2 = td->td_pcb; in cpu_set_upcall() [all …]
|
| D | ptrace_machdep.c | 147 td->td_pcb->pcb_fsbase = r; in cpu_ptrace_setbase() 150 td->td_pcb->pcb_gsbase = r; in cpu_ptrace_setbase() 153 set_pcb_flags(td->td_pcb, PCB_FULL_IRET); in cpu_ptrace_setbase() 195 r = req == PT_GETFSBASE ? td->td_pcb->pcb_fsbase : in cpu32_ptrace() 196 td->td_pcb->pcb_gsbase; in cpu32_ptrace() 249 r = req == PT_GETFSBASE ? &td->td_pcb->pcb_fsbase : in cpu_ptrace() 250 &td->td_pcb->pcb_gsbase; in cpu_ptrace()
|
| D | fpu.c | 632 pcb = td->td_pcb; in restore_fpu_curthread() 709 !PCB_USER_FPU(td->td_pcb)) { in fpu_activate_sw() 726 clear_pcb_flags(td->td_pcb, PCB_FPUINITDONE); in fpudrop() 743 pcb = td->td_pcb; in fpugetregs() 789 pcb = td->td_pcb; in fpuuserinited() 846 pcb = td->td_pcb; in fpusetregs() 1007 pcb = td->td_pcb; in fpu_kern_enter() 1031 pcb = td->td_pcb; in fpu_kern_leave()
|
| D | sys_machdep.c | 125 set_pcb_flags(td->td_pcb, PCB_FULL_IRET); in sysarch_ldt() 149 set_pcb_flags(td->td_pcb, PCB_FULL_IRET); in update_gdt_gsbase() 164 set_pcb_flags(td->td_pcb, PCB_FULL_IRET); in update_gdt_fsbase() 178 struct pcb *pcb = curthread->td_pcb; 359 pcb = td->td_pcb; 403 if (td->td_pcb->pcb_tssp == NULL) { 408 iomap = (char *)&td->td_pcb->pcb_tssp[1]; 608 set_pcb_flags(td->td_pcb, PCB_FULL_IRET);
|
| /freebsd-10-stable/sys/i386/i386/ |
| D | vm_machdep.c | 242 td1->td_pcb->pcb_gs = rgs(); in cpu_fork() 246 npxsave(td1->td_pcb->pcb_save); in cpu_fork() 252 td2->td_pcb = pcb2; in cpu_fork() 255 bcopy(td1->td_pcb, pcb2, sizeof(*pcb2)); in cpu_fork() 272 td2->td_frame = (struct trapframe *)((caddr_t)td2->td_pcb - 16) - 1; in cpu_fork() 367 td->td_pcb->pcb_esi = (int) func; /* function */ 368 td->td_pcb->pcb_ebx = (int) arg; /* first arg */ 381 td->td_pcb->pcb_gs = _udatasel; in cpu_exit() 400 if (td->td_pcb->pcb_flags & PCB_DBREGS) { in cpu_thread_exit() 402 td->td_pcb->pcb_flags &= ~PCB_DBREGS; in cpu_thread_exit() [all …]
|
| D | ptrace_machdep.c | 180 sdp = req == PT_GETFSBASE ? &td->td_pcb->pcb_fsd : in cpu_ptrace() 181 &td->td_pcb->pcb_gsd; in cpu_ptrace() 193 td->td_pcb->pcb_fsd = sd; in cpu_ptrace() 196 td->td_pcb->pcb_gsd = sd; in cpu_ptrace() 197 td->td_pcb->pcb_gs = GSEL(GUGS_SEL, SEL_UPL); in cpu_ptrace()
|
| D | sys_machdep.c | 220 sdp = &td->td_pcb->pcb_fsd; 235 td->td_pcb->pcb_fsd = sd; 247 sdp = &td->td_pcb->pcb_gsd; 261 td->td_pcb->pcb_gsd = sd; 307 ext->ext_tss.tss_esp0 = (vm_offset_t)td->td_pcb - 16; in i386_extend_pcb() 329 KASSERT(td->td_pcb->pcb_ext == 0, ("already have a TSS!")); in i386_extend_pcb() 333 td->td_pcb->pcb_ext = ext; in i386_extend_pcb() 362 if (td->td_pcb->pcb_ext == 0) 365 iomap = (char *)td->td_pcb->pcb_ext->ext_iomap; 391 if (td->td_pcb->pcb_ext == 0) { [all …]
|
| D | machdep.c | 456 struct vm86_kernel *vm86 = &td->td_pcb->pcb_ext->ext_vm86; in osendsig() 579 struct vm86_kernel *vm86 = &td->td_pcb->pcb_ext->ext_vm86; in freebsd4_sendsig() 689 sdp = &td->td_pcb->pcb_fsd; 692 sdp = &td->td_pcb->pcb_gsd; 750 struct vm86_kernel *vm86 = &td->td_pcb->pcb_ext->ext_vm86; 839 if (td->td_pcb->pcb_ext == 0) 841 vm86 = &td->td_pcb->pcb_ext->ext_vm86; 954 if (td->td_pcb->pcb_ext == 0) 956 vm86 = &td->td_pcb->pcb_ext->ext_vm86; 1067 if (td->td_pcb->pcb_ext == 0) [all …]
|
| /freebsd-10-stable/sys/mips/mips/ |
| D | vm_machdep.c | 147 pcb2 = td2->td_pcb; in cpu_fork() 155 bcopy(td1->td_pcb, pcb2, sizeof(*pcb2)); in cpu_fork() 174 pcb2->pcb_context[PCB_REG_SP] = (register_t)(((vm_offset_t)td2->td_pcb & in cpu_fork() 238 td->td_pcb->pcb_context[PCB_REG_S0] = (register_t)(intptr_t)func; in cpu_set_fork_handler() 239 td->td_pcb->pcb_context[PCB_REG_S1] = (register_t)(intptr_t)arg; in cpu_set_fork_handler() 311 td->td_pcb = (struct pcb *)(td->td_kstack + in cpu_thread_alloc() 313 td->td_frame = &td->td_pcb->pcb_regs; in cpu_thread_alloc() 370 locr0->pc = td->td_pcb->pcb_tpc; in cpu_set_syscall_retval() 402 pcb2 = td->td_pcb; in cpu_set_upcall() 418 bcopy(td0->td_pcb, pcb2, sizeof(*pcb2)); in cpu_set_upcall() [all …]
|
| D | stack_machdep.c | 140 pc = td->td_pcb->pcb_regs.pc; in stack_save_td() 141 sp = td->td_pcb->pcb_regs.sp; in stack_save_td() 153 pc = curthread->td_pcb->pcb_regs.pc; in stack_save() 154 sp = curthread->td_pcb->pcb_regs.sp; in stack_save()
|
| D | trap.c | 351 td->td_pcb->pcb_tpc = sa->trapframe->pc; /* Remember if restart */ in cpu_fetch_syscall_args() 674 if (td->td_pcb->pcb_onfault != NULL) { in trap() 675 pc = (register_t)(intptr_t)td->td_pcb->pcb_onfault; in trap() 676 td->td_pcb->pcb_onfault = NULL; in trap() 686 if (td->td_pcb->pcb_onfault == NULL) in trap() 691 if (td->td_pcb->pcb_onfault == fswintrberr) { in trap() 692 pc = (register_t)(intptr_t)td->td_pcb->pcb_onfault; in trap() 693 td->td_pcb->pcb_onfault = NULL; in trap() 753 if (td->td_pcb->pcb_onfault != NULL) { in trap() 754 pc = (register_t)(intptr_t)td->td_pcb->pcb_onfault; in trap() [all …]
|
| /freebsd-10-stable/sys/i386/isa/ |
| D | npx.c | 171 (thread)->td_pcb->pcb_save->sv_xmm.sv_env.en_cw : \ 172 (thread)->td_pcb->pcb_save->sv_87.sv_env.en_cw) 175 (thread)->td_pcb->pcb_save->sv_xmm.sv_env.en_sw : \ 176 (thread)->td_pcb->pcb_save->sv_87.sv_env.en_sw) 185 (thread->td_pcb->pcb_save->sv_87.sv_env.en_cw) 187 (thread->td_pcb->pcb_save->sv_87.sv_env.en_sw) 841 mxcsr = curthread->td_pcb->pcb_save->sv_xmm.sv_env.en_mxcsr; in npxtrap_sse() 920 restore_npx_curthread(td, td->td_pcb); in npxdna() 1016 td->td_pcb->pcb_flags &= ~PCB_NPXINITDONE; in npxdrop() 1039 pcb = td->td_pcb; in npxgetregs() [all …]
|
| /freebsd-10-stable/sys/powerpc/aim/ |
| D | trap.c | 227 KASSERT((td->td_pcb->pcb_flags & PCB_FPU) != PCB_FPU, in trap() 233 KASSERT((td->td_pcb->pcb_flags & PCB_VEC) != PCB_VEC, in trap() 249 td->td_pcb->pcb_vec.vscr |= ALTIVEC_VSCR_NJ; in trap() 277 sig = ppc_instr_emulate(frame, td->td_pcb); in trap() 323 "r"(td->td_pcb->pcb_cpu.aim.usr_vsid), in trap() 420 fb = td->td_pcb->pcb_onfault; in handle_onfault() 538 "r"(td->td_pcb->pcb_cpu.aim.usr_vsid), "r"(USER_SLB_SLBE)); in syscall() 660 user_sr = td->td_pcb->pcb_cpu.aim.usr_segm; in trap_pfault() 723 fpr = &td->td_pcb->pcb_fpu.fpr[reg]; in fix_unaligned()
|
| /freebsd-10-stable/sys/sparc64/sparc64/ |
| D | vm_machdep.c | 154 td->td_pcb = pcb; in cpu_thread_alloc() 191 td->td_frame->tf_tpc = td->td_pcb->pcb_tpc; in cpu_set_syscall_retval() 214 pcb = td->td_pcb; in cpu_set_upcall() 284 pcb1 = td1->td_pcb; in cpu_fork() 287 td2->td_pcb = pcb2; in cpu_fork() 397 pcb = td->td_pcb; in cpu_set_fork_handler()
|
| /freebsd-10-stable/sys/powerpc/booke/ |
| D | machdep.c | 463 thread0.td_pcb = (struct pcb *) in booke_init() 466 bzero((void *)thread0.td_pcb, sizeof(struct pcb)); in booke_init() 467 pc->pc_curpcb = thread0.td_pcb; in booke_init() 480 ((uintptr_t)thread0.td_pcb - 16) & ~15); in booke_init() 482 return (((uintptr_t)thread0.td_pcb - 16) & ~15); in booke_init()
|
| /freebsd-10-stable/sys/powerpc/powermac/ |
| D | grackle.c | 255 oldfaultbuf = td->td_pcb->pcb_onfault; in badaddr() 257 td->td_pcb->pcb_onfault = oldfaultbuf; in badaddr() 281 td->td_pcb->pcb_onfault = oldfaultbuf; in badaddr()
|