Home
last modified time | relevance | path

Searched refs:p_addr (Results 1 – 25 of 134) sorted by relevance

123456

/openbsd/sys/arch/arm64/arm64/
H A Dprocess_machdep.c58 struct trapframe *tf = p->p_addr->u_pcb.pcb_tf; in process_read_regs()
73 if (p->p_addr->u_pcb.pcb_flags & PCB_FPU) in process_read_fpregs()
76 if (p->p_addr->u_pcb.pcb_flags & PCB_FPU) in process_read_fpregs()
89 struct trapframe *tf = p->p_addr->u_pcb.pcb_tf; in process_write_regs()
96 p->p_addr->u_pcb.pcb_tcb = (void *)regs->r_tpidr; in process_write_regs()
103 memcpy(&p->p_addr->u_pcb.pcb_fpstate, regs, in process_write_fpregs()
104 sizeof(p->p_addr->u_pcb.pcb_fpstate)); in process_write_fpregs()
105 p->p_addr->u_pcb.pcb_flags |= PCB_FPU; in process_write_fpregs()
116 struct trapframe *tf = p->p_addr->u_pcb.pcb_tf; in process_sstep()
119 p->p_addr->u_pcb.pcb_flags |= PCB_SINGLESTEP; in process_sstep()
[all …]
H A Ddb_trace.c83 frame = p->p_addr->u_pcb.pcb_tf->tf_x[29]; in db_stack_trace_print()
84 sp = p->p_addr->u_pcb.pcb_tf->tf_sp; in db_stack_trace_print()
85 lr = p->p_addr->u_pcb.pcb_tf->tf_lr; in db_stack_trace_print()
86 lastlr = p->p_addr->u_pcb.pcb_tf->tf_elr; in db_stack_trace_print()
176 limit = (struct callframe *)STACKALIGN(p->p_addr + USPACE - in stacktrace_save_at()
H A Dvm_machdep.c74 struct pcb *pcb = &p2->p_addr->u_pcb; in cpu_fork()
75 struct pcb *pcb1 = &p1->p_addr->u_pcb; in cpu_fork()
90 *pcb = p1->p_addr->u_pcb; in cpu_fork()
92 tf = (struct trapframe *)((u_long)p2->p_addr in cpu_fork()
99 *tf = *p1->p_addr->u_pcb.pcb_tf; in cpu_fork()
/openbsd/sys/arch/riscv64/riscv64/
H A Dprocess_machdep.c55 struct trapframe *tf = p->p_addr->u_pcb.pcb_tf; in process_read_regs()
73 struct trapframe *tf = p->p_addr->u_pcb.pcb_tf; in process_read_fpregs()
75 if (p->p_addr->u_pcb.pcb_flags & PCB_FPU) in process_read_fpregs()
78 if (p->p_addr->u_pcb.pcb_flags & PCB_FPU) in process_read_fpregs()
79 memcpy(regs, &p->p_addr->u_pcb.pcb_fpstate, sizeof(*regs)); in process_read_fpregs()
91 struct trapframe *tf = p->p_addr->u_pcb.pcb_tf; in process_write_regs()
108 struct trapframe *tf = p->p_addr->u_pcb.pcb_tf; in process_write_fpregs()
110 memcpy(&p->p_addr->u_pcb.pcb_fpstate, regs, in process_write_fpregs()
111 sizeof(p->p_addr->u_pcb.pcb_fpstate)); in process_write_fpregs()
112 p->p_addr->u_pcb.pcb_flags |= PCB_FPU; in process_write_fpregs()
[all …]
H A Dfpu.c40 struct pcb *pcb = &p->p_addr->u_pcb; in fpu_save()
90 p->p_addr->u_pcb.pcb_tf->tf_sstatus &= ~SSTATUS_FS_MASK; in fpu_save()
91 p->p_addr->u_pcb.pcb_tf->tf_sstatus |= SSTATUS_FS_CLEAN; in fpu_save()
97 struct pcb *pcb = &p->p_addr->u_pcb; in fpu_load()
150 p->p_addr->u_pcb.pcb_tf->tf_sstatus &= ~SSTATUS_FS_MASK; in fpu_load()
151 p->p_addr->u_pcb.pcb_tf->tf_sstatus |= SSTATUS_FS_CLEAN; in fpu_load()
H A Dvm_machdep.c60 struct pcb *pcb = &p2->p_addr->u_pcb; in cpu_fork()
61 struct pcb *pcb1 = &p1->p_addr->u_pcb; in cpu_fork()
74 *pcb = p1->p_addr->u_pcb; in cpu_fork()
78 tf = (struct trapframe *)((u_long)p2->p_addr in cpu_fork()
86 *tf = *p1->p_addr->u_pcb.pcb_tf; in cpu_fork()
H A Dsig_machdep.c84 return p->p_addr->u_pcb.pcb_tf; in process_frame()
123 if (p->p_addr->u_pcb.pcb_flags & PCB_FPU) in sendsig()
146 if (p->p_addr->u_pcb.pcb_flags & PCB_FPU) { in sendsig()
147 fpreg = &p->p_addr->u_pcb.pcb_fpstate; in sendsig()
239 if (p->p_addr->u_pcb.pcb_flags & PCB_FPU) { in sys_sigreturn()
240 fpreg = &p->p_addr->u_pcb.pcb_fpstate; in sys_sigreturn()
/openbsd/sys/arch/i386/isa/
H A Dnpx.c457 addr = &p->p_addr->u_pcb.pcb_savefpu; in npxintr()
654 p->p_addr->u_pcb.pcb_cr0 &= ~CR0_TS; in npxdna_xmm()
658 p->p_addr->u_pcb.pcb_fpcpu = ci; in npxdna_xmm()
662 sfp = &p->p_addr->u_pcb.pcb_savefpu; in npxdna_xmm()
735 p->p_addr->u_pcb.pcb_cr0 &= ~CR0_TS; in npxdna_s87()
739 p->p_addr->u_pcb.pcb_fpcpu = ci; in npxdna_s87()
743 sfp = &p->p_addr->u_pcb.pcb_savefpu; in npxdna_s87()
825 p->p_addr->u_pcb.pcb_cr0 |= CR0_TS; in npxsave_cpu()
828 p->p_addr->u_pcb.pcb_fpcpu = NULL; in npxsave_cpu()
842 KDASSERT(p->p_addr != NULL); in npxsave_proc()
[all …]
/openbsd/sys/arch/arm/arm/
H A Dvm_machdep.c86 struct pcb *pcb = &p2->p_addr->u_pcb; in cpu_fork()
96 *pcb = p1->p_addr->u_pcb; in cpu_fork()
102 pcb->pcb_un.un_32.pcb32_und_sp = (u_int)p2->p_addr + in cpu_fork()
104 pcb->pcb_un.un_32.pcb32_sp = (u_int)p2->p_addr + USPACE_SVC_STACK_TOP; in cpu_fork()
109 *tf = *p1->p_addr->u_pcb.pcb_tf; in cpu_fork()
118 p2->p_addr->u_pcb.pcb_tcb = tcb; in cpu_fork()
131 if (p->p_addr->u_pcb.pcb_fpcpu != NULL) in cpu_exit()
H A Dprocess_machdep.c117 return p->p_addr->u_pcb.pcb_tf; in process_frame()
144 if (p->p_addr->u_pcb.pcb_flags & PCB_FPU) in process_read_fpregs()
145 memcpy(regs, &p->p_addr->u_pcb.pcb_fpstate, sizeof(*regs)); in process_read_fpregs()
178 if (p->p_addr->u_pcb.pcb_fpcpu != NULL) in process_write_fpregs()
181 memcpy(&p->p_addr->u_pcb.pcb_fpstate, regs, sizeof(*regs)); in process_write_fpregs()
182 p->p_addr->u_pcb.pcb_flags |= PCB_FPU; in process_write_fpregs()
H A Darm_machdep.c107 if (p->p_addr->u_pcb.pcb_fpcpu != NULL) in setregs()
109 p->p_addr->u_pcb.pcb_flags &= ~PCB_FPU; in setregs()
111 tf = p->p_addr->u_pcb.pcb_tf; in setregs()
H A Dvfp.c110 vfp_store(&p->p_addr->u_pcb.pcb_fpstate); in vfp_save()
125 if (curproc->p_addr->u_pcb.pcb_fpcpu == ci && in vfp_enable()
138 struct pcb *pcb = &p->p_addr->u_pcb; in vfp_load()
176 struct pcb *pcb = &p->p_addr->u_pcb; in vfp_fault()
/openbsd/gnu/usr.bin/gcc/gcc/testsuite/gcc.dg/noncompile/
H A D920923-1.c72 register caddr_t p_addr; /* { error "syntax error" } */ local
83 p_addr = (--bucket)->p_addr; /* { error "undeclared|pointer to" } */
85 switch (p_addr) {
89 p_addr = fill_item_entry(va_op, v_addr);
108 bucket->p_addr = ((caddr_t)0);/* { error "pointer to|parse error" } */
/openbsd/sys/arch/mips64/mips64/
H A Dvm_machdep.c73 p2->p_md.md_uarea = (vaddr_t)p2->p_addr; in cpu_fork()
75 p2->p_addr = (void *)PHYS_TO_XKPHYS(pa, CCA_CACHED); in cpu_fork()
77 pcb = &p2->p_addr->u_pcb; in cpu_fork()
96 savectx(p1->p_addr, 0); in cpu_fork()
102 *pcb = p1->p_addr->u_pcb; in cpu_fork()
103 p2->p_md.md_regs = &p2->p_addr->u_pcb.pcb_regs; in cpu_fork()
142 p->p_addr = (void *)p->p_md.md_uarea; in cpu_exit()
/openbsd/sys/arch/alpha/alpha/
H A Dvm_machdep.c56 if (p->p_addr->u_pcb.pcb_fpcpu != NULL)
88 struct user *up = p2->p_addr; in cpu_fork()
108 if (p1->p_addr->u_pcb.pcb_fpcpu != NULL) in cpu_fork()
117 up->u_pcb = p1->p_addr->u_pcb; in cpu_fork()
150 p2->p_md.md_tf = (struct trapframe *)((char *)p2->p_addr + USPACE) - 1; in cpu_fork()
240 return (void *)p->p_addr->u_pcb.pcb_hw.apcb_unique; in tcb_get()
248 p->p_addr->u_pcb.pcb_hw.apcb_unique = (unsigned long)newtcb; in tcb_set()
H A Dtrap.c391 p->p_addr->u_pcb.pcb_onfault == 0)) {
400 onfault = p->p_addr->u_pcb.pcb_onfault;
401 p->p_addr->u_pcb.pcb_onfault = 0;
407 p->p_addr->u_pcb.pcb_onfault = onfault;
424 if (p->p_addr->u_pcb.pcb_onfault != 0) {
426 p->p_addr->u_pcb.pcb_onfault;
617 if (p->p_addr->u_pcb.pcb_fpcpu != NULL) in alpha_enable_fp()
620 KDASSERT(p->p_addr->u_pcb.pcb_fpcpu == NULL); in alpha_enable_fp()
627 p->p_addr->u_pcb.pcb_fpcpu = ci; in alpha_enable_fp()
633 restorefpstate(&p->p_addr->u_pcb.pcb_fp); in alpha_enable_fp()
/openbsd/sys/arch/amd64/amd64/
H A Dvm_machdep.c69 struct pcb *pcb = &p2->p_addr->u_pcb; in cpu_fork()
70 struct pcb *pcb1 = &p1->p_addr->u_pcb; in cpu_fork()
92 pcb->pcb_kstack = (u_int64_t)p2->p_addr + USPACE - 16 - in cpu_fork()
139 vaddr_t va = (vaddr_t)p->p_addr + PAGE_SIZE; in setguardpage()
219 return ((void *)p->p_addr->u_pcb.pcb_fsbase); in tcb_get()
227 p->p_addr->u_pcb.pcb_fsbase = (u_int64_t)tcb; in tcb_set()
/openbsd/sys/arch/powerpc/powerpc/
H A Dvm_machdep.c61 struct pcb *pcb = &p2->p_addr->u_pcb; in cpu_fork()
66 *pcb = p1->p_addr->u_pcb; in cpu_fork()
69 if (p1->p_addr->u_pcb.pcb_vr != NULL) { in cpu_fork()
73 *pcb->pcb_vr = *p1->p_addr->u_pcb.pcb_vr; in cpu_fork()
146 struct pcb *pcb = &p->p_addr->u_pcb; in cpu_exit()
H A Dprocess_machdep.c50 struct pcb *pcb = &p->p_addr->u_pcb; in process_read_regs()
78 struct pcb *pcb = &p->p_addr->u_pcb; in process_read_fpregs()
125 struct pcb *pcb = &p->p_addr->u_pcb; in process_write_regs()
159 struct pcb *pcb = &p->p_addr->u_pcb; in process_write_fpregs()
/openbsd/sys/arch/m88k/m88k/
H A Dvm_machdep.c76 struct m88100_pcb *mdpcb = &p2->p_addr->u_pcb.kernel_state; in cpu_fork()
88 bcopy(&p1->p_addr->u_pcb, &p2->p_addr->u_pcb, sizeof(struct pcb)); in cpu_fork()
107 mdpcb->pcb_sp = (u_int)((char *)p2->p_addr + USPACE); in cpu_fork()
H A Dtrap.c314 pcb_onfault = p->p_addr->u_pcb.pcb_onfault; in m88100_trap()
322 p->p_addr->u_pcb.pcb_onfault = 0; in m88100_trap()
326 p->p_addr->u_pcb.pcb_onfault = pcb_onfault; in m88100_trap()
332 p->p_addr->u_pcb.pcb_onfault = 0; in m88100_trap()
335 p->p_addr->u_pcb.pcb_onfault = pcb_onfault; in m88100_trap()
343 p->p_addr->u_pcb.pcb_onfault = 0; in m88100_trap()
416 p->p_addr->u_pcb.pcb_onfault = 0; in m88100_trap()
435 p->p_addr->u_pcb.pcb_onfault = pcb_onfault; in m88100_trap()
453 p->p_addr->u_pcb.pcb_onfault = 0; in m88100_trap()
843 p->p_addr->u_pcb.pcb_onfault = 0; in m88110_trap()
[all …]
/openbsd/sys/arch/i386/i386/
H A Dvm_machdep.c65 struct pcb *pcb = &p2->p_addr->u_pcb; in cpu_fork()
79 *pcb = p1->p_addr->u_pcb; in cpu_fork()
81 pcb->pcb_kstack = (int)p2->p_addr + USPACE - 16 - in cpu_fork()
114 if (p->p_addr->u_pcb.pcb_fpcpu != NULL) in cpu_exit()
/openbsd/sys/arch/hppa/hppa/
H A Dvm_machdep.c65 pcbp = &p2->p_addr->u_pcb; in cpu_fork()
66 bcopy(&p1->p_addr->u_pcb, pcbp, sizeof(*pcbp)); in cpu_fork()
70 *pcbp->pcb_fpstate = *p1->p_addr->u_pcb.pcb_fpstate; in cpu_fork()
82 sp = (register_t)p2->p_addr + NBPG; in cpu_fork()
129 struct pcb *pcb = &p->p_addr->u_pcb; in cpu_exit()
/openbsd/sys/arch/powerpc64/powerpc64/
H A Dvm_machdep.c71 struct pcb *pcb = &p2->p_addr->u_pcb; in cpu_fork()
72 struct pcb *pcb1 = &p1->p_addr->u_pcb; in cpu_fork()
86 *pcb = p1->p_addr->u_pcb; in cpu_fork()
95 kstack = (register_t)p2->p_addr + USPACE - FRAMELEN - in cpu_fork()
/openbsd/sys/arch/sh/sh/
H A Dvm_machdep.c161 pcb = (struct pcb *)P1ADDR((vaddr_t)&p2->p_addr->u_pcb); in cpu_fork()
166 pcb = &p2->p_addr->u_pcb; in cpu_fork()
173 spbase = (vaddr_t)p2->p_addr + PAGE_SIZE; in cpu_fork()
181 sh_dcache_wbinv_range((vaddr_t)p2->p_addr, USPACE); in cpu_fork()

123456