Home
last modified time | relevance | path

Searched refs:tf_regs (Results 1 – 25 of 77) sorted by relevance

1234

/netbsd/sys/arch/alpha/alpha/
H A Dkgdb_machdep.c176 gdb_regs[KGDB_REG_V0 ] = regs->tf_regs[FRAME_V0]; in kgdb_getregs()
177 gdb_regs[KGDB_REG_T0 ] = regs->tf_regs[FRAME_T0]; in kgdb_getregs()
178 gdb_regs[KGDB_REG_T1 ] = regs->tf_regs[FRAME_T1]; in kgdb_getregs()
179 gdb_regs[KGDB_REG_T2 ] = regs->tf_regs[FRAME_T2]; in kgdb_getregs()
180 gdb_regs[KGDB_REG_T3 ] = regs->tf_regs[FRAME_T3]; in kgdb_getregs()
181 gdb_regs[KGDB_REG_T4 ] = regs->tf_regs[FRAME_T4]; in kgdb_getregs()
182 gdb_regs[KGDB_REG_T5 ] = regs->tf_regs[FRAME_T5]; in kgdb_getregs()
183 gdb_regs[KGDB_REG_T6 ] = regs->tf_regs[FRAME_T6]; in kgdb_getregs()
184 gdb_regs[KGDB_REG_T7 ] = regs->tf_regs[FRAME_T7]; in kgdb_getregs()
185 gdb_regs[KGDB_REG_S0 ] = regs->tf_regs[FRAME_S0]; in kgdb_getregs()
[all …]
H A Dlinux_syscall.c160 code = framep->tf_regs[FRAME_A0]; in linux_syscall_plain()
193 args = &framep->tf_regs[FRAME_A0]; in linux_syscall_plain()
206 framep->tf_regs[FRAME_A3] = 0; in linux_syscall_plain()
209 framep->tf_regs[FRAME_PC] -= 4; in linux_syscall_plain()
216 framep->tf_regs[FRAME_V0] = error; in linux_syscall_plain()
217 framep->tf_regs[FRAME_A3] = 1; in linux_syscall_plain()
244 code = framep->tf_regs[FRAME_A0]; in linux_syscall_fancy()
279 args = &framep->tf_regs[FRAME_A0]; in linux_syscall_fancy()
296 framep->tf_regs[FRAME_A3] = 0; in linux_syscall_fancy()
299 framep->tf_regs[FRAME_PC] -= 4; in linux_syscall_fancy()
[all …]
H A Dsyscall.c154 code = tf->tf_regs[FRAME_A0]; in syscall()
174 copyargs[5] = tf->tf_regs[FRAME_A5]; in syscall()
176 copyargs[4] = tf->tf_regs[FRAME_A4]; in syscall()
178 copyargs[3] = tf->tf_regs[FRAME_A3]; in syscall()
188 args = &tf->tf_regs[FRAME_A0]; in syscall()
196 tf->tf_regs[FRAME_V0] = rval[0]; in syscall()
197 tf->tf_regs[FRAME_A4] = rval[1]; in syscall()
198 tf->tf_regs[FRAME_A3] = 0; in syscall()
202 tf->tf_regs[FRAME_PC] -= 4; in syscall()
208 tf->tf_regs[FRAME_V0] = error; in syscall()
[all …]
H A Dmachdep.c1496 tf->tf_regs[FRAME_RA] = (uint64_t)tramp; in buildcontext()
1497 tf->tf_regs[FRAME_PC] = (uint64_t)catcher; in buildcontext()
1570 tf->tf_regs[FRAME_A0] = sig; in sendsig_siginfo()
1583 tf->tf_regs[FRAME_PC], tf->tf_regs[FRAME_A3]); in sendsig_siginfo()
1679 tfp->tf_regs[i] = 0xbabefacedeadbeef; in setregs()
1681 memset(tfp->tf_regs, 0, FRAME_SIZE * sizeof tfp->tf_regs[0]); in setregs()
1693 tfp->tf_regs[FRAME_T12] = tfp->tf_regs[FRAME_PC]; /* a.k.a. PV */ in setregs()
1850 gr[_REG_PC] = frame->tf_regs[FRAME_PC]; in cpu_getmcontext()
1851 gr[_REG_PS] = frame->tf_regs[FRAME_PS]; in cpu_getmcontext()
1901 frame->tf_regs[FRAME_PC] = gr[_REG_PC]; in cpu_setmcontext()
[all …]
H A Dcompat_16_machdep.c125 frame.sf_sc.sc_pc = tf->tf_regs[FRAME_PC]; in sendsig_sigcontext()
126 frame.sf_sc.sc_ps = tf->tf_regs[FRAME_PS]; in sendsig_sigcontext()
213 tf->tf_regs[FRAME_A0] = sig; in sendsig_sigcontext()
216 tf->tf_regs[FRAME_A1] = KSI_TRAPCODE(ksi); in sendsig_sigcontext()
217 tf->tf_regs[FRAME_A2] = (uint64_t)&fp->sf_sc; in sendsig_sigcontext()
226 tf->tf_regs[FRAME_PC], tf->tf_regs[FRAME_A3]); in sendsig_sigcontext()
275 l->l_md.md_tf->tf_regs[FRAME_PC] = ksc.sc_pc; in compat_16_sys___sigreturn14()
276 l->l_md.md_tf->tf_regs[FRAME_PS] = in compat_16_sys___sigreturn14()
H A Dtrap.c155 framep->tf_regs[FRAME_PC] = onfault; in onfault_restore()
156 framep->tf_regs[FRAME_V0] = error; in onfault_restore()
175 pc = tf->tf_regs[FRAME_PC]; in onfault_handler()
227 framep->tf_regs[FRAME_PC]); in printtrap()
229 framep->tf_regs[FRAME_RA]); in printtrap()
231 framep->tf_regs[FRAME_T12]); in printtrap()
324 (void *)l->l_md.md_tf->tf_regs[FRAME_PC]; in trap()
390 (void *)l->l_md.md_tf->tf_regs[FRAME_PC]; in trap()
861 l->l_md.md_tf->tf_regs[FRAME_PC] - 4, in unaligned_fixup()
862 l->l_md.md_tf->tf_regs[FRAME_RA], in unaligned_fixup()
[all …]
H A Ddb_trace.c238 addr = DDB_REGS->tf_regs[FRAME_SP] - FRAME_SIZE * 8; in db_stack_trace_print()
240 callpc = tf->tf_regs[FRAME_PC]; in db_stack_trace_print()
336 tfps = tf->tf_regs[FRAME_PS]; in db_stack_trace_print()
338 decode_syscall(tf->tf_regs[FRAME_V0], p, pr); in db_stack_trace_print()
349 callpc = tf->tf_regs[FRAME_PC]; in db_stack_trace_print()
370 callpc = tf->tf_regs[FRAME_RA]; in db_stack_trace_print()
/netbsd/sys/arch/m68k/m68k/
H A Dm68k_machdep.c98 tf->tf_regs[D0] = 0; in setregs()
99 tf->tf_regs[D1] = 0; in setregs()
100 tf->tf_regs[D2] = 0; in setregs()
101 tf->tf_regs[D3] = 0; in setregs()
102 tf->tf_regs[D4] = 0; in setregs()
103 tf->tf_regs[D5] = 0; in setregs()
104 tf->tf_regs[D6] = 0; in setregs()
105 tf->tf_regs[D7] = 0; in setregs()
106 tf->tf_regs[A0] = 0; in setregs()
107 tf->tf_regs[A1] = 0; in setregs()
[all …]
H A Ddb_trace.c51 { "d0", (long *)&ddb_regs.tf_regs[0], FCN_NULL, NULL },
52 { "d1", (long *)&ddb_regs.tf_regs[1], FCN_NULL, NULL },
53 { "d2", (long *)&ddb_regs.tf_regs[2], FCN_NULL, NULL },
54 { "d3", (long *)&ddb_regs.tf_regs[3], FCN_NULL, NULL },
55 { "d4", (long *)&ddb_regs.tf_regs[4], FCN_NULL, NULL },
56 { "d5", (long *)&ddb_regs.tf_regs[5], FCN_NULL, NULL },
57 { "d6", (long *)&ddb_regs.tf_regs[6], FCN_NULL, NULL },
58 { "d7", (long *)&ddb_regs.tf_regs[7], FCN_NULL, NULL },
60 { "a0", (long *)&ddb_regs.tf_regs[8+0], FCN_NULL, NULL },
128 sp->k_regloc[i] = (int) &regs->tf_regs[i]; in stacktop()
[all …]
H A Dregdump.c83 printf(" %s", hexstr(tf->tf_regs[i], 8)); in regdump()
86 printf(" %s", hexstr(tf->tf_regs[i+8], 8)); in regdump()
94 hexstr(tf->tf_regs[SP], 8)); in regdump()
95 dumpmem((int *)tf->tf_regs[SP], sbytes, 1); in regdump()
/netbsd/sys/arch/mips/mips/
H A Dtrap.c858 tf->tf_regs[_R_A0], tf->tf_regs[_R_A1], tf->tf_regs[_R_A2]); in frame_dump()
861 tf->tf_regs[_R_A3], tf->tf_regs[_R_A4], tf->tf_regs[_R_A5]); in frame_dump()
863 tf->tf_regs[_R_A6], tf->tf_regs[_R_A7], tf->tf_regs[_R_T0]); in frame_dump()
865 tf->tf_regs[_R_T1], tf->tf_regs[_R_T2], tf->tf_regs[_R_T3]); in frame_dump()
868 tf->tf_regs[_R_A3], tf->tf_regs[_R_T0], tf->tf_regs[_R_T1]); in frame_dump()
870 tf->tf_regs[_R_T2], tf->tf_regs[_R_T3], tf->tf_regs[_R_T4]); in frame_dump()
872 tf->tf_regs[_R_T5], tf->tf_regs[_R_T6], tf->tf_regs[_R_T7]); in frame_dump()
875 tf->tf_regs[_R_S0], tf->tf_regs[_R_S1], tf->tf_regs[_R_S2]); in frame_dump()
877 tf->tf_regs[_R_S3], tf->tf_regs[_R_S4], tf->tf_regs[_R_S5]); in frame_dump()
879 tf->tf_regs[_R_S6], tf->tf_regs[_R_S7], tf->tf_regs[_R_T8]); in frame_dump()
[all …]
H A Dmips_emul.c126 if (tf->tf_regs[inst.RType.rs] == tf->tf_regs[inst.RType.rt]) in mips_emul_branch()
134 if (tf->tf_regs[inst.RType.rs] != tf->tf_regs[inst.RType.rt]) in mips_emul_branch()
269 tf->tf_regs[_R_CAUSE] = cause; in send_sigsegv()
284 tf->tf_regs[_R_PC] = in update_pc()
288 tf->tf_regs[_R_PC] += 4; in update_pc()
390 tf->tf_regs[_R_BADVADDR] = tf->tf_regs[_R_PC]; in mips_emul_special()
473 tf->tf_regs[_R_BADVADDR] = tf->tf_regs[_R_PC]; in mips_emul_special3()
516 pc = tf->tf_regs[_R_PC]; in mips_emul_lwc1()
548 pc = tf->tf_regs[_R_PC]; in mips_emul_lwc1()
606 pc = tf->tf_regs[_R_PC]; in mips_emul_swc1()
[all …]
H A Dcompat_16_machdep.c119 ksc.sc_pc = tf->tf_regs[_R_PC]; in sendsig_sigcontext()
120 ksc.mullo = tf->tf_regs[_R_MULLO]; in sendsig_sigcontext()
121 ksc.mulhi = tf->tf_regs[_R_MULHI]; in sendsig_sigcontext()
130 ksc.sc_regs[i] = tf->tf_regs[i]; in sendsig_sigcontext()
185 tf->tf_regs[_R_A0] = sig; in sendsig_sigcontext()
186 tf->tf_regs[_R_A1] = ksi->ksi_trap; in sendsig_sigcontext()
187 tf->tf_regs[_R_A2] = (intptr_t)scp; in sendsig_sigcontext()
266 tf->tf_regs[_R_PC] = ksc.sc_pc; in compat_16_sys___sigreturn14()
267 tf->tf_regs[_R_MULLO] = ksc.mullo; in compat_16_sys___sigreturn14()
268 tf->tf_regs[_R_MULHI] = ksc.mulhi; in compat_16_sys___sigreturn14()
[all …]
H A Dgenassym.cf191 define TF_REG_V0 offsetof(struct trapframe, tf_regs[_R_V0])
192 define TF_REG_V1 offsetof(struct trapframe, tf_regs[_R_V1])
193 define TF_REG_A0 offsetof(struct trapframe, tf_regs[_R_A0])
194 define TF_REG_A1 offsetof(struct trapframe, tf_regs[_R_A1])
195 define TF_REG_A2 offsetof(struct trapframe, tf_regs[_R_A2])
196 define TF_REG_A3 offsetof(struct trapframe, tf_regs[_R_A3])
197 define TF_REG_T0 offsetof(struct trapframe, tf_regs[_R_T0])
198 define TF_REG_T1 offsetof(struct trapframe, tf_regs[_R_T1])
199 define TF_REG_T2 offsetof(struct trapframe, tf_regs[_R_T2])
200 define TF_REG_T3 offsetof(struct trapframe, tf_regs[_R_T3])
[all …]
H A Dsig_machdep.c62 return (void *)(intptr_t)tf->tf_regs[_R_SP]; in getframe()
115 tf->tf_regs[_R_A0] = signo; in sendsig_siginfo()
116 tf->tf_regs[_R_A1] = (intptr_t)&sf->sf_si; in sendsig_siginfo()
117 tf->tf_regs[_R_A2] = (intptr_t)&sf->sf_uc; in sendsig_siginfo()
119 tf->tf_regs[_R_PC] = (intptr_t)catcher; in sendsig_siginfo()
120 tf->tf_regs[_R_T9] = (intptr_t)catcher; in sendsig_siginfo()
121 tf->tf_regs[_R_SP] = (intptr_t)sf; in sendsig_siginfo()
122 tf->tf_regs[_R_RA] = (intptr_t)sa->sa_sigdesc[signo].sd_tramp; in sendsig_siginfo()
H A Dmips_fpu.c95 if ((tf->tf_regs[_R_SR] & MIPS_SR_COP_1_BIT) == 0) in mips_fpu_state_save()
115 : "r"(tf->tf_regs[_R_SR] & (MIPS_SR_COP_1_BIT|MIPS3_SR_FR|MIPS_SR_KX|MIPS_SR_INT_IE)), in mips_fpu_state_save()
123 if (tf->tf_regs[_R_SR] & MIPS3_SR_FR) { in mips_fpu_state_save()
232 tf->tf_regs[_R_SR] |= MIPS_SR_COP_1_BIT; in mips_fpu_state_load()
246 …: "r"(tf->tf_regs[_R_SR] & (MIPS_SR_COP_1_BIT|MIPS3_SR_FR|MIPS_SR_KX|MIPS_SR_INT_IE)), "n"(MIPS_CO… in mips_fpu_state_load()
253 if (tf->tf_regs[_R_SR] & MIPS3_SR_FR) { in mips_fpu_state_load()
358 l->l_md.md_utf->tf_regs[_R_SR] &= ~MIPS_SR_COP_1_BIT; in mips_fpu_state_release()
H A Dcompat_13_machdep.c81 tf->tf_regs[_R_PC] = ksc.sc_pc; in compat_13_sys_sigreturn()
82 tf->tf_regs[_R_MULLO] = ksc.mullo; in compat_13_sys_sigreturn()
83 tf->tf_regs[_R_MULHI] = ksc.mulhi; in compat_13_sys_sigreturn()
85 memcpy(&tf->tf_regs[1], &scp->sc_regs[1], in compat_13_sys_sigreturn()
89 tf->tf_regs[i] = scp->sc_regs[i]; in compat_13_sys_sigreturn()
H A Dnetbsd32_machdep.c149 tf->tf_regs[_R_A0] = sig; in netbsd32_sendsig_siginfo()
150 tf->tf_regs[_R_A1] = (intptr_t)&sfp->sf_si; in netbsd32_sendsig_siginfo()
151 tf->tf_regs[_R_A2] = (intptr_t)&sfp->sf_uc; in netbsd32_sendsig_siginfo()
153 tf->tf_regs[_R_PC] = (intptr_t)catcher; in netbsd32_sendsig_siginfo()
154 tf->tf_regs[_R_T9] = (intptr_t)catcher; in netbsd32_sendsig_siginfo()
155 tf->tf_regs[_R_SP] = (intptr_t)sfp; in netbsd32_sendsig_siginfo()
156 tf->tf_regs[_R_RA] = (intptr_t)ps->sa_sigdesc[sig].sd_tramp; in netbsd32_sendsig_siginfo()
/netbsd/sys/arch/hp300/stand/common/
H A Dmachdep.c124 fp->tf_regs[0], fp->tf_regs[1], in trap()
125 fp->tf_regs[2], fp->tf_regs[3], in trap()
126 fp->tf_regs[4], fp->tf_regs[5], in trap()
127 fp->tf_regs[6], fp->tf_regs[7]); in trap()
129 fp->tf_regs[8], fp->tf_regs[9], in trap()
130 fp->tf_regs[10], fp->tf_regs[11], in trap()
131 fp->tf_regs[12], fp->tf_regs[13], in trap()
132 fp->tf_regs[14], fp->tf_regs[15]); in trap()
/netbsd/sys/compat/linux/arch/mips/
H A Dlinux_machdep.c113 sc->lsc_regs[i] = tf->tf_regs[i]; in linux_setup_sigcontext32()
115 sc->lsc_mdhi = tf->tf_regs[_R_MULHI]; in linux_setup_sigcontext32()
117 sc->lsc_pc = tf->tf_regs[_R_PC]; in linux_setup_sigcontext32()
126 sc->lsc_regs[i] = tf->tf_regs[i]; in linux_setup_sigcontext()
130 sc->lsc_pc = tf->tf_regs[_R_PC]; in linux_setup_sigcontext()
235 tf->tf_regs[_R_A1] = 0; in linux_sendsig()
242 tf->tf_regs[_R_SP] = (intptr_t)sf; in linux_sendsig()
260 tf->tf_regs[i] = sc->lsc_regs[i]; in linux_putaway_sigcontext()
264 tf->tf_regs[_R_PC] = sc->lsc_pc; in linux_putaway_sigcontext()
273 tf->tf_regs[i] = sc->lsc_regs[i]; in linux_putaway_sigcontext32()
[all …]
/netbsd/sys/compat/linux/arch/alpha/
H A Dlinux_machdep.c105 memset(tfp->tf_regs, 0, FRAME_SIZE * sizeof tfp->tf_regs[0]); in linux_setregs()
190 tf->tf_regs[FRAME_A1] = (unsigned long)&sfp->info; in setup_linux_rt_sigframe()
191 tf->tf_regs[FRAME_A2] = (unsigned long)&sfp->uc; in setup_linux_rt_sigframe()
194 tf->tf_regs[FRAME_PC] = in setup_linux_rt_sigframe()
245 sigframe.sf_sc.sc_pc = tf->tf_regs[FRAME_PC]; in setup_linux_sigframe()
282 tf->tf_regs[FRAME_A1] = 0; in setup_linux_sigframe()
286 tf->tf_regs[FRAME_PC] = in setup_linux_sigframe()
334 tf->tf_regs[FRAME_T12] = (u_int64_t)catcher; in linux_sendsig()
347 tf->tf_regs[FRAME_PC], tf->tf_regs[FRAME_A3]); in linux_sendsig()
392 l->l_md.md_tf->tf_regs[FRAME_PC] = context.sc_pc; in linux_restore_sigcontext()
[all …]
/netbsd/external/cddl/osnet/dev/dtrace/mips/
H A Ddtrace_subr.c232 cpu_core[CURRENT_CPU].cpuc_dtrace_illval = frame->tf_regs[_R_BADVADDR]; in dtrace_trap()
238 if (DELAYBRANCH(frame->tf_regs[_R_CAUSE])) /* Check BD bit */ in dtrace_trap()
245 __func__, (intmax_t)frame->tf_regs[_R_PC], in dtrace_trap()
246 (intmax_t)frame->tf_regs[_R_BADVADDR]); in dtrace_trap()
249 frame->tf_regs[_R_PC] += sizeof(int); in dtrace_trap()
278 invop = dtrace_invop(frame->tf_regs[_R_PC], frame, frame->tf_regs[_R_PC]); in dtrace_invop_start()
283 sp = (register_t *)(intptr_t)(frame->tf_regs[_R_SP] + offs); in dtrace_invop_start()
287 frame->tf_regs[_R_RA] = *sp; in dtrace_invop_start()
288 frame->tf_regs[_R_PC] += INSN_SIZE; in dtrace_invop_start()
291 *(sp) = frame->tf_regs[_R_RA]; in dtrace_invop_start()
[all …]
/netbsd/sys/arch/or1k/include/
H A Dframe.h38 struct reg tf_regs __aligned(8);
43 #define tf_reg tf_regs.r_reg
44 #define tf_rvh tf_regs.r_reg[12]
45 #define tf_rv tf_regs.r_reg[11]
46 #define tf_lr tf_regs.r_reg[9]
47 #define tf_sp tf_regs.r_sp
/netbsd/sys/arch/aarch64/include/
H A Dframe.h40 struct reg tf_regs __aligned(16);
43 #define tf_reg tf_regs.r_reg
44 #define tf_lr tf_regs.r_reg[30]
45 #define tf_pc tf_regs.r_pc
46 #define tf_sp tf_regs.r_sp
47 #define tf_spsr tf_regs.r_spsr
/netbsd/sys/arch/riscv/include/
H A Dframe.h38 struct reg tf_regs; member
43 #define tf_reg tf_regs.r_reg
44 #define tf_pc tf_regs.r_pc
87 struct reg32 tf_regs; member

1234