Home
last modified time | relevance | path

Searched refs:trapframe (Results 1 – 25 of 221) sorted by relevance

123456789

/freebsd-13.1/sys/mips/mips/
H A Dvm_machdep.c417 struct trapframe *tf; in cpu_set_upcall()
496 dump_trapframe(struct trapframe *trapframe) in dump_trapframe() argument
503 DB_PRINT_REG(trapframe, v0); in dump_trapframe()
504 DB_PRINT_REG(trapframe, v1); in dump_trapframe()
505 DB_PRINT_REG(trapframe, a0); in dump_trapframe()
506 DB_PRINT_REG(trapframe, a1); in dump_trapframe()
507 DB_PRINT_REG(trapframe, a2); in dump_trapframe()
508 DB_PRINT_REG(trapframe, a3); in dump_trapframe()
556 struct trapframe *trapframe; in DB_SHOW_COMMAND() local
570 trapframe = &pcb->pcb_regs; in DB_SHOW_COMMAND()
[all …]
H A Dtrap.c511 trap(struct trapframe *trapframe) in trap() argument
578 (intmax_t)trapframe->badvaddr, (intmax_t)trapframe->pc, (intmax_t)trapframe->ra, in trap()
579 (intmax_t)trapframe->sp, (intmax_t)trapframe->sr, in trap()
779 addr = trapframe->pc; in trap()
829 va = trapframe->pc; in trap()
862 va = trapframe->pc; in trap()
878 va = trapframe->pc; in trap()
967 trapframe); in trap()
1019 (intmax_t)trapframe->pc, (unsigned)trapframe->cause, (unsigned)trapframe->sr); in trap()
1029 MipsFPTrap(trapframe->sr, trapframe->cause, trapframe->pc); in trap()
[all …]
/freebsd-13.1/sys/powerpc/powerpc/
H A Dgenassym.c148 ASSYM(FRAME_0, offsetof(struct trapframe, fixreg[0]));
149 ASSYM(FRAME_1, offsetof(struct trapframe, fixreg[1]));
150 ASSYM(FRAME_2, offsetof(struct trapframe, fixreg[2]));
151 ASSYM(FRAME_3, offsetof(struct trapframe, fixreg[3]));
180 ASSYM(FRAME_LR, offsetof(struct trapframe, lr));
181 ASSYM(FRAME_CR, offsetof(struct trapframe, cr));
182 ASSYM(FRAME_CTR, offsetof(struct trapframe, ctr));
183 ASSYM(FRAME_XER, offsetof(struct trapframe, xer));
184 ASSYM(FRAME_SRR0, offsetof(struct trapframe, srr0));
185 ASSYM(FRAME_SRR1, offsetof(struct trapframe, srr1));
[all …]
H A Dtrap.c86 static void trap_fatal(struct trapframe *frame);
92 static int handle_onfault(struct trapframe *frame);
93 static void syscall(struct trapframe *frame);
116 int (*dtrace_invop_jump_addr)(struct trapframe *);
194 frame_is_trap_inst(struct trapframe *frame) in frame_is_trap_inst()
204 trap(struct trapframe *frame) in trap()
520 trap_fatal(struct trapframe *frame) in trap_fatal()
617 handle_onfault(struct trapframe *frame) in handle_onfault()
659 struct trapframe *frame; in cpu_fetch_syscall_args()
744 syscall(struct trapframe *frame) in syscall()
[all …]
/freebsd-13.1/sys/riscv/riscv/
H A Dgenassym.c91 ASSYM(TF_RA, offsetof(struct trapframe, tf_ra));
92 ASSYM(TF_SP, offsetof(struct trapframe, tf_sp));
93 ASSYM(TF_GP, offsetof(struct trapframe, tf_gp));
94 ASSYM(TF_TP, offsetof(struct trapframe, tf_tp));
95 ASSYM(TF_T, offsetof(struct trapframe, tf_t));
96 ASSYM(TF_S, offsetof(struct trapframe, tf_s));
97 ASSYM(TF_A, offsetof(struct trapframe, tf_a));
98 ASSYM(TF_SEPC, offsetof(struct trapframe, tf_sepc));
99 ASSYM(TF_STVAL, offsetof(struct trapframe, tf_stval));
100 ASSYM(TF_SCAUSE, offsetof(struct trapframe, tf_scause));
[all …]
H A Dexec_machdep.c83 struct trapframe *frame; in fill_regs()
103 struct trapframe *frame; in set_regs()
148 struct trapframe *frame; in set_fpregs()
181 struct trapframe *tf; in exec_setregs()
187 memset(tf, 0, sizeof(struct trapframe)); in exec_setregs()
198 CTASSERT(sizeof(((struct trapframe *)0)->tf_a) ==
200 CTASSERT(sizeof(((struct trapframe *)0)->tf_s) ==
202 CTASSERT(sizeof(((struct trapframe *)0)->tf_t) ==
214 struct trapframe *tf = td->td_frame; in get_mcontext()
239 struct trapframe *tf; in set_mcontext()
[all …]
H A Dvm_machdep.c71 struct trapframe *tf; in cpu_fork()
84 tf = (struct trapframe *)STACKALIGN((struct trapframe *)pcb2 - 1); in cpu_fork()
131 struct trapframe *frame; in cpu_set_syscall_retval()
166 bcopy(td0->td_frame, td->td_frame, sizeof(struct trapframe)); in cpu_copy_thread()
187 struct trapframe *tf; in cpu_set_upcall()
223 td->td_frame = (struct trapframe *)STACKALIGN( in cpu_thread_alloc()
224 (caddr_t)td->td_pcb - 8 - sizeof(struct trapframe)); in cpu_thread_alloc()
/freebsd-13.1/sys/amd64/amd64/
H A Dgenassym.c164 ASSYM(TF_R15, offsetof(struct trapframe, tf_r15));
165 ASSYM(TF_R14, offsetof(struct trapframe, tf_r14));
170 ASSYM(TF_R9, offsetof(struct trapframe, tf_r9));
171 ASSYM(TF_R8, offsetof(struct trapframe, tf_r8));
183 ASSYM(TF_CS, offsetof(struct trapframe, tf_cs));
186 ASSYM(TF_SS, offsetof(struct trapframe, tf_ss));
187 ASSYM(TF_DS, offsetof(struct trapframe, tf_ds));
188 ASSYM(TF_ES, offsetof(struct trapframe, tf_es));
189 ASSYM(TF_FS, offsetof(struct trapframe, tf_fs));
190 ASSYM(TF_GS, offsetof(struct trapframe, tf_gs));
[all …]
H A Dtrap.c110 void trap_check(struct trapframe *frame);
117 int (**hook)(struct trapframe *));
217 trap(struct trapframe *frame) in trap()
659 trap_check(struct trapframe *frame) in trap_check()
671 trap_is_smap(struct trapframe *frame) in trap_is_smap()
689 trap_is_pti(struct trapframe *frame) in trap_is_pti()
955 trap_user_dtrace(struct trapframe *frame, int (**hookp)(struct trapframe *)) in trap_user_dtrace() argument
957 int (*hook)(struct trapframe *); in trap_user_dtrace()
974 dblfault_handler(struct trapframe *frame) in dblfault_handler()
1010 struct trapframe *frame; in cpu_fetch_syscall_args_fallback()
[all …]
/freebsd-13.1/sys/cddl/dev/dtrace/aarch64/
H A Ddtrace_subr.c50 extern int (*dtrace_invop_jump_addr)(struct trapframe *);
54 int dtrace_invop(uintptr_t, struct trapframe *, uintptr_t);
59 int (*dtih_func)(uintptr_t, struct trapframe *, uintptr_t);
66 dtrace_invop(uintptr_t addr, struct trapframe *frame, uintptr_t eax) in dtrace_invop()
80 dtrace_invop_add(int (*func)(uintptr_t, struct trapframe *, uintptr_t)) in dtrace_invop_add() argument
91 dtrace_invop_remove(int (*func)(uintptr_t, struct trapframe *, uintptr_t)) in dtrace_invop_remove() argument
188 dtrace_trap(struct trapframe *frame, u_int type) in dtrace_trap()
239 dtrace_load64(uint64_t *addr, struct trapframe *frame, u_int reg) in dtrace_load64()
251 dtrace_store64(uint64_t *addr, struct trapframe *frame, u_int reg) in dtrace_store64()
264 dtrace_invop_start(struct trapframe *frame) in dtrace_invop_start()
/freebsd-13.1/sys/cddl/dev/dtrace/mips/
H A Ddtrace_subr.c49 extern int (*dtrace_invop_jump_addr)(struct trapframe *);
52 int dtrace_invop(uintptr_t, struct trapframe *, uintptr_t);
57 int (*dtih_func)(uintptr_t, struct trapframe *, uintptr_t);
64 dtrace_invop(uintptr_t addr, struct trapframe *stack, uintptr_t eax) in dtrace_invop()
77 dtrace_invop_add(int (*func)(uintptr_t, struct trapframe *, uintptr_t)) in dtrace_invop_add() argument
88 dtrace_invop_remove(int (*func)(uintptr_t, struct trapframe *, uintptr_t)) in dtrace_invop_remove() argument
181 dtrace_trap(struct trapframe *frame, u_int type) in dtrace_trap()
247 dtrace_invop_start(struct trapframe *frame) in dtrace_invop_start()
/freebsd-13.1/sys/arm64/arm64/
H A Dtrap.c78 void do_el1h_sync(struct thread *, struct trapframe *);
79 void do_el0_sync(struct thread *, struct trapframe *);
80 void do_el0_error(struct trapframe *);
81 void do_serror(struct trapframe *);
82 void unhandled_exception(struct trapframe *);
85 static void print_registers(struct trapframe *frame);
87 int (*dtrace_invop_jump_addr)(struct trapframe *);
194 svc_handler(struct thread *td, struct trapframe *frame) in svc_handler()
396 print_registers(struct trapframe *frame) in print_registers()
645 do_serror(struct trapframe *frame) in do_serror()
[all …]
H A Dvm_machdep.c71 struct trapframe *tf; in cpu_fork()
99 tf = (struct trapframe *)STACKALIGN((struct trapframe *)pcb2 - 1); in cpu_fork()
149 struct trapframe *frame; in cpu_set_syscall_retval()
183 bcopy(td0->td_frame, td->td_frame, sizeof(struct trapframe)); in cpu_copy_thread()
212 struct trapframe *tf = td->td_frame; in cpu_set_upcall()
260 td->td_frame = (struct trapframe *)STACKALIGN( in cpu_thread_alloc()
261 (struct trapframe *)td->td_pcb - 1); in cpu_thread_alloc()
H A Dgenassym.c78 ASSYM(TF_SIZE, sizeof(struct trapframe));
79 ASSYM(TF_SP, offsetof(struct trapframe, tf_sp));
80 ASSYM(TF_ELR, offsetof(struct trapframe, tf_elr));
81 ASSYM(TF_SPSR, offsetof(struct trapframe, tf_spsr));
82 ASSYM(TF_X, offsetof(struct trapframe, tf_x));
/freebsd-13.1/sys/cddl/dev/dtrace/riscv/
H A Ddtrace_subr.c53 extern int (*dtrace_invop_jump_addr)(struct trapframe *);
57 int dtrace_invop(uintptr_t, struct trapframe *);
62 int (*dtih_func)(uintptr_t, struct trapframe *, uintptr_t);
69 dtrace_invop(uintptr_t addr, struct trapframe *frame) in dtrace_invop()
82 dtrace_invop_add(int (*func)(uintptr_t, struct trapframe *, uintptr_t)) in dtrace_invop_add() argument
93 dtrace_invop_remove(int (*func)(uintptr_t, struct trapframe *, uintptr_t)) in dtrace_invop_remove() argument
187 dtrace_trap(struct trapframe *frame, u_int type) in dtrace_trap()
251 dtrace_invop_start(struct trapframe *frame) in dtrace_invop_start()
/freebsd-13.1/sys/cddl/dev/dtrace/arm/
H A Ddtrace_subr.c55 extern int (*dtrace_invop_jump_addr)(struct trapframe *);
59 int dtrace_invop(uintptr_t, struct trapframe *, uintptr_t);
64 int (*dtih_func)(uintptr_t, struct trapframe *, uintptr_t);
71 dtrace_invop(uintptr_t addr, struct trapframe *frame, uintptr_t eax) in dtrace_invop()
85 dtrace_invop_add(int (*func)(uintptr_t, struct trapframe *, uintptr_t)) in dtrace_invop_add() argument
96 dtrace_invop_remove(int (*func)(uintptr_t, struct trapframe *, uintptr_t)) in dtrace_invop_remove() argument
196 dtrace_trap(struct trapframe *frame, u_int type) in dtrace_trap()
247 dtrace_invop_start(struct trapframe *frame) in dtrace_invop_start()
/freebsd-13.1/sys/cddl/dev/dtrace/powerpc/
H A Ddtrace_subr.c50 extern int (*dtrace_invop_jump_addr)(struct trapframe *);
54 int dtrace_invop(uintptr_t, struct trapframe *, uintptr_t);
59 int (*dtih_func)(uintptr_t, struct trapframe *, uintptr_t);
66 dtrace_invop(uintptr_t addr, struct trapframe *frame, uintptr_t arg0) in dtrace_invop()
79 dtrace_invop_add(int (*func)(uintptr_t, struct trapframe *, uintptr_t)) in dtrace_invop_add() argument
90 dtrace_invop_remove(int (*func)(uintptr_t, struct trapframe *, uintptr_t)) in dtrace_invop_remove() argument
268 dtrace_trap(struct trapframe *frame, u_int type) in dtrace_trap()
337 dtrace_invop_start(struct trapframe *frame) in dtrace_invop_start()
/freebsd-13.1/sys/sys/
H A Ddtrace_bsd.h38 struct trapframe;
43 int dtrace_trap(struct trapframe *, u_int);
50 typedef int (*dtrace_trap_func_t)(struct trapframe *, u_int);
62 typedef int (*dtrace_pid_probe_ptr_t)(struct trapframe *);
64 typedef int (*dtrace_return_probe_ptr_t)(struct trapframe *);
/freebsd-13.1/sys/arm/arm/
H A Dvm_machdep.c86 _Static_assert((sizeof(struct trapframe) % 8) == 0, "Bad alignment");
99 struct trapframe *tf; in cpu_fork()
126 td2->td_frame = (struct trapframe *)pcb2 - 1; in cpu_fork()
167 struct trapframe *frame; in cpu_set_syscall_retval()
208 bcopy(td0->td_frame, td->td_frame, sizeof(struct trapframe)); in cpu_copy_thread()
232 struct trapframe *tf = td->td_frame; in cpu_set_upcall()
265 td->td_frame = (struct trapframe *)((caddr_t)td->td_pcb) - 1; in cpu_thread_alloc()
/freebsd-13.1/sys/powerpc/include/
H A Dtrap.h154 struct trapframe;
156 extern int (*hmi_handler)(struct trapframe *);
157 void trap(struct trapframe *);
158 int ppc_instr_emulate(struct trapframe *, struct thread *);
/freebsd-13.1/sys/mips/nlm/
H A Dclock.h40 void count_compare_clockhandler(struct trapframe *);
41 void pic_hardclockhandler(struct trapframe *);
42 void pic_timecounthandler(struct trapframe *);
/freebsd-13.1/sys/i386/i386/
H A Dgenassym.c149 ASSYM(TF_FS, offsetof(struct trapframe, tf_fs));
150 ASSYM(TF_ES, offsetof(struct trapframe, tf_es));
151 ASSYM(TF_DS, offsetof(struct trapframe, tf_ds));
152 ASSYM(TF_TRAPNO, offsetof(struct trapframe, tf_trapno));
153 ASSYM(TF_ERR, offsetof(struct trapframe, tf_err));
154 ASSYM(TF_EIP, offsetof(struct trapframe, tf_eip));
155 ASSYM(TF_CS, offsetof(struct trapframe, tf_cs));
156 ASSYM(TF_EFLAGS, offsetof(struct trapframe, tf_eflags));
157 ASSYM(TF_SZ, sizeof(struct trapframe));
/freebsd-13.1/sys/arm/include/
H A Dundefined.h56 struct trapframe;
58 typedef int (*undef_handler_t) (unsigned int, unsigned int, struct trapframe *, int);
87 void undefinedinstruction(struct trapframe *);
/freebsd-13.1/sys/arm64/cloudabi64/
H A Dcloudabi64_sysvec.c54 struct trapframe *regs; in cloudabi64_proc_setregs()
72 struct trapframe *frame; in cloudabi64_fetch_syscall_args()
98 struct trapframe *frame = td->td_frame; in cloudabi64_set_syscall_retval()
124 struct trapframe *frame = td->td_frame; in cloudabi64_schedtail()
141 struct trapframe *frame; in cloudabi64_thread_setregs()
/freebsd-13.1/sys/cddl/dev/dtrace/amd64/
H A Ddtrace_subr.c51 extern int (*dtrace_invop_jump_addr)(struct trapframe *);
53 int dtrace_invop(uintptr_t, struct trapframe *, uintptr_t);
54 int dtrace_invop_start(struct trapframe *frame);
59 int (*dtih_func)(uintptr_t, struct trapframe *, uintptr_t);
66 dtrace_invop(uintptr_t addr, struct trapframe *frame, uintptr_t eax) in dtrace_invop()
79 dtrace_invop_add(int (*func)(uintptr_t, struct trapframe *, uintptr_t)) in dtrace_invop_add() argument
90 dtrace_invop_remove(int (*func)(uintptr_t, struct trapframe *, uintptr_t)) in dtrace_invop_remove() argument
412 dtrace_trap(struct trapframe *frame, u_int type)

123456789