Home
last modified time | relevance | path

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

123456789

/freebsd/sys/powerpc/powerpc/
H A Dgenassym.c145 ASSYM(FRAME_0, offsetof(struct trapframe, fixreg[0]));
146 ASSYM(FRAME_1, offsetof(struct trapframe, fixreg[1]));
147 ASSYM(FRAME_2, offsetof(struct trapframe, fixreg[2]));
148 ASSYM(FRAME_3, offsetof(struct trapframe, fixreg[3]));
149 ASSYM(FRAME_4, offsetof(struct trapframe, fixreg[4]));
150 ASSYM(FRAME_5, offsetof(struct trapframe, fixreg[5]));
151 ASSYM(FRAME_6, offsetof(struct trapframe, fixreg[6]));
152 ASSYM(FRAME_7, offsetof(struct trapframe, fixreg[7]));
153 ASSYM(FRAME_8, offsetof(struct trapframe, fixreg[8]));
154 ASSYM(FRAME_9, offsetof(struct trapframe, fixreg[9]));
[all …]
H A Dtrap.c83 static void trap_fatal(struct trapframe *frame);
84 static void printtrap(u_int vector, struct trapframe *frame, int isfatal,
86 static bool trap_pfault(struct trapframe *frame, bool user, int *signo,
88 static int fix_unaligned(struct thread *td, struct trapframe *frame);
89 static int handle_onfault(struct trapframe *frame);
90 static void syscall(struct trapframe *frame);
102 int db_trap_glue(struct trapframe *); /* Called from trap_subr.S */
113 int (*dtrace_invop_jump_addr)(struct trapframe *);
193 frame_is_trap_inst(struct trapframe *frame) in frame_is_trap_inst()
203 trap(struct trapframe *fram in trap()
[all...]
H A Dexec_machdep.c152 struct trapframe *tf; in sendsig()
384 makectx(struct trapframe *tf, struct pcb *pcb) in makectx()
407 memcpy(&mcp->mc_frame, td->td_frame, sizeof(struct trapframe)); in grab_mcontext()
482 struct trapframe *tf; in set_mcontext()
659 struct trapframe *tf; in exec_setregs()
662 tf = trapframe(td); in exec_setregs()
705 struct trapframe *tf; in ppc32_setregs()
708 tf = trapframe(td); in ppc32_setregs()
731 struct trapframe *tf; in fill_regs()
769 struct trapframe *tf; in set_regs()
[all …]
/freebsd/sys/amd64/amd64/
H A Dgenassym.c159 ASSYM(TF_R15, offsetof(struct trapframe, tf_r15));
160 ASSYM(TF_R14, offsetof(struct trapframe, tf_r14));
161 ASSYM(TF_R13, offsetof(struct trapframe, tf_r13));
162 ASSYM(TF_R12, offsetof(struct trapframe, tf_r12));
163 ASSYM(TF_R11, offsetof(struct trapframe, tf_r11));
164 ASSYM(TF_R10, offsetof(struct trapframe, tf_r10));
165 ASSYM(TF_R9, offsetof(struct trapframe, tf_r9));
166 ASSYM(TF_R8, offsetof(struct trapframe, tf_r8));
167 ASSYM(TF_RDI, offsetof(struct trapframe, tf_rdi));
168 ASSYM(TF_RSI, offsetof(struct trapframe, tf_rsi));
[all …]
H A Dtrap.c105 void __noinline trap(struct trapframe *frame);
106 void trap_check(struct trapframe *frame);
107 void dblfault_handler(struct trapframe *frame);
109 static int trap_pfault(struct trapframe *, bool, int *, int *);
110 static void trap_diag(struct trapframe *, vm_offset_t);
111 static void trap_fatal(struct trapframe *, vm_offset_t);
113 static bool trap_user_dtrace(struct trapframe *,
114 int (**hook)(struct trapframe *));
221 trap(struct trapframe *frame) in trap()
652 trap_check(struct trapframe *frame) in trap_check()
[all …]
/freebsd/sys/riscv/riscv/
H A Dgenassym.c89 ASSYM(TF_RA, offsetof(struct trapframe, tf_ra));
90 ASSYM(TF_SP, offsetof(struct trapframe, tf_sp));
91 ASSYM(TF_GP, offsetof(struct trapframe, tf_gp));
92 ASSYM(TF_TP, offsetof(struct trapframe, tf_tp));
93 ASSYM(TF_T, offsetof(struct trapframe, tf_t));
94 ASSYM(TF_S, offsetof(struct trapframe, tf_s));
95 ASSYM(TF_A, offsetof(struct trapframe, tf_a));
96 ASSYM(TF_SEPC, offsetof(struct trapframe, tf_sepc));
97 ASSYM(TF_STVAL, offsetof(struct trapframe, tf_stval));
98 ASSYM(TF_SCAUSE, offsetof(struct trapframe, tf_scause));
[all …]
H A Dexec_machdep.c81 struct trapframe *frame; in fill_regs()
101 struct trapframe *frame; in set_regs()
143 struct trapframe *frame; in set_fpregs()
175 struct trapframe *tf; in exec_setregs()
181 memset(tf, 0, sizeof(struct trapframe)); in exec_setregs()
192 CTASSERT(sizeof(((struct trapframe *)0)->tf_a) ==
194 CTASSERT(sizeof(((struct trapframe *)0)->tf_s) ==
196 CTASSERT(sizeof(((struct trapframe *)0)->tf_t) ==
198 CTASSERT(sizeof(((struct trapframe *)0)->tf_a) ==
200 CTASSERT(sizeof(((struct trapframe *)0)->tf_s) ==
[all …]
H A Dvm_machdep.c76 td->td_frame = (struct trapframe *)(STACKALIGN( in cpu_set_pcb_frame()
89 struct trapframe *tf; in cpu_fork()
136 struct trapframe *frame; in cpu_set_syscall_retval()
171 bcopy(td0->td_frame, td->td_frame, sizeof(struct trapframe)); in cpu_copy_thread()
192 struct trapframe *tf; in cpu_set_upcall()
/freebsd/sys/arm64/arm64/
H A Dgenassym.c79 ASSYM(TF_SIZE, sizeof(struct trapframe));
80 ASSYM(TF_SP, offsetof(struct trapframe, tf_sp));
81 ASSYM(TF_LR, offsetof(struct trapframe, tf_lr));
82 ASSYM(TF_ELR, offsetof(struct trapframe, tf_elr));
83 ASSYM(TF_SPSR, offsetof(struct trapframe, tf_spsr));
84 ASSYM(TF_ESR, offsetof(struct trapframe, tf_esr));
85 ASSYM(TF_X, offsetof(struct trapframe, tf_x));
H A Dtrap.c77 void do_el1h_sync(struct thread *, struct trapframe *);
78 void do_el0_sync(struct thread *, struct trapframe *);
79 void do_el0_error(struct trapframe *);
80 void do_serror(struct trapframe *);
81 void unhandled_exception(struct trapframe *);
84 static void print_registers(struct trapframe *frame);
86 int (*dtrace_invop_jump_addr)(struct trapframe *);
88 typedef void (abort_handler)(struct thread *, struct trapframe *, uint64_t,
194 svc_handler(struct thread *td, struct trapframe *frame) in svc_handler()
208 align_abort(struct thread *td, struct trapframe *frame, uint64_t esr, in align_abort()
[all …]
H A Dvm_machdep.c73 struct trapframe *tf; in cpu_fork()
103 tf = (struct trapframe *)STACKALIGN((struct trapframe *)pcb2 - 1); in cpu_fork()
143 struct trapframe *frame; in cpu_set_syscall_retval()
177 bcopy(td0->td_frame, td->td_frame, sizeof(struct trapframe)); in cpu_copy_thread()
209 struct trapframe *tf = td->td_frame; in cpu_set_upcall()
264 td->td_frame = (struct trapframe *)STACKALIGN( in cpu_thread_alloc()
265 (struct trapframe *)td->td_pcb - 1); in cpu_thread_alloc()
/freebsd/sys/cddl/dev/dtrace/aarch64/
H A Ddtrace_subr.c46 extern int (*dtrace_invop_jump_addr)(struct trapframe *);
50 int dtrace_invop(uintptr_t, struct trapframe *, uintptr_t);
55 int (*dtih_func)(uintptr_t, struct trapframe *, uintptr_t);
62 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
216 dtrace_trap(struct trapframe *frame, u_int type) in dtrace_trap()
267 dtrace_load64(uint64_t *addr, struct trapframe *frame, u_int reg) in dtrace_load64()
279 dtrace_store64(uint64_t *addr, struct trapframe *frame, u_int reg) in dtrace_store64()
292 dtrace_invop_start(struct trapframe *frame) in dtrace_invop_start()
/freebsd/sys/cddl/dev/dtrace/riscv/
H A Ddtrace_subr.c49 extern int (*dtrace_invop_jump_addr)(struct trapframe *);
53 int dtrace_invop(uintptr_t, struct trapframe *);
58 int (*dtih_func)(uintptr_t, struct trapframe *, uintptr_t);
65 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()
243 dtrace_invop_start(struct trapframe *frame) in dtrace_invop_start()
/freebsd/sys/cddl/dev/dtrace/powerpc/
H A Ddtrace_subr.c46 extern int (*dtrace_invop_jump_addr)(struct trapframe *);
50 int dtrace_invop(uintptr_t, struct trapframe *, uintptr_t);
55 int (*dtih_func)(uintptr_t, struct trapframe *, uintptr_t);
62 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/sys/cddl/dev/dtrace/arm/
H A Ddtrace_subr.c51 extern int (*dtrace_invop_jump_addr)(struct trapframe *);
55 int dtrace_invop(uintptr_t, struct trapframe *, uintptr_t);
60 int (*dtih_func)(uintptr_t, struct trapframe *, uintptr_t);
67 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/sys/sys/
H A Ddtrace_bsd.h36 struct trapframe;
41 int dtrace_trap(struct trapframe *, u_int);
48 typedef int (*dtrace_trap_func_t)(struct trapframe *, u_int);
60 typedef int (*dtrace_pid_probe_ptr_t)(struct trapframe *);
62 typedef int (*dtrace_return_probe_ptr_t)(struct trapframe *);
/freebsd/sys/arm/arm/
H A Dvm_machdep.c81 _Static_assert((sizeof(struct trapframe) % 8) == 0, "Bad alignment");
94 struct trapframe *tf; in cpu_fork()
120 td2->td_frame = (struct trapframe *)pcb2 - 1; in cpu_fork()
152 struct trapframe *frame; in cpu_set_syscall_retval()
191 bcopy(td0->td_frame, td->td_frame, sizeof(struct trapframe)); in cpu_copy_thread()
219 struct trapframe *tf = td->td_frame; in cpu_set_upcall()
255 td->td_frame = (struct trapframe *)((caddr_t)td->td_pcb) - 1; in cpu_thread_alloc()
/freebsd/sys/x86/include/
H A Dx86_var.h106 struct trapframe;
149 void nmi_call_kdb(u_int cpu, u_int type, struct trapframe *frame);
150 void nmi_call_kdb_smp(u_int type, struct trapframe *frame);
151 void nmi_register_handler(int (*handler)(struct trapframe *));
152 void nmi_remove_handler(int (*handler)(struct trapframe *));
153 void nmi_handle_intr(struct trapframe *frame);
/freebsd/sys/powerpc/include/
H A Dtrap.h153 struct trapframe;
155 extern int (*hmi_handler)(struct trapframe *);
156 void trap(struct trapframe *);
157 int ppc_instr_emulate(struct trapframe *, struct thread *);
/freebsd/sys/cddl/dev/dtrace/i386/
H A Ddtrace_subr.c53 extern int (*dtrace_invop_jump_addr)(struct trapframe *);
55 int dtrace_invop(uintptr_t, struct trapframe *, uintptr_t);
56 int dtrace_invop_start(struct trapframe *frame);
61 int (*dtih_func)(uintptr_t, struct trapframe *, uintptr_t);
68 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
389 dtrace_trap(struct trapframe *frame, u_int type) in dtrace_trap()
/freebsd/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 *, void **);
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, void **scratch) in dtrace_invop()
87 dtrace_invop_add(int (*func)(uintptr_t, struct trapframe *, uintptr_t)) in dtrace_invop_add() argument
98 dtrace_invop_remove(int (*func)(uintptr_t, struct trapframe *, uintptr_t)) in dtrace_invop_remove() argument
392 dtrace_trap(struct trapframe *frame, u_int type) in dtrace_trap()
/freebsd/sys/i386/i386/
H A Dgenassym.c143 ASSYM(TF_FS, offsetof(struct trapframe, tf_fs));
144 ASSYM(TF_ES, offsetof(struct trapframe, tf_es));
145 ASSYM(TF_DS, offsetof(struct trapframe, tf_ds));
146 ASSYM(TF_TRAPNO, offsetof(struct trapframe, tf_trapno));
147 ASSYM(TF_ERR, offsetof(struct trapframe, tf_err));
148 ASSYM(TF_EIP, offsetof(struct trapframe, tf_eip));
149 ASSYM(TF_CS, offsetof(struct trapframe, tf_cs));
150 ASSYM(TF_EFLAGS, offsetof(struct trapframe, tf_eflags));
151 ASSYM(TF_SZ, sizeof(struct trapframe));
H A Dtrap.c107 void trap(struct trapframe *frame);
108 void syscall(struct trapframe *frame);
110 static int trap_pfault(struct trapframe *, bool, vm_offset_t, int *, int *);
111 static void trap_fatal(struct trapframe *, vm_offset_t);
113 static bool trap_user_dtrace(struct trapframe *,
114 int (**hook)(struct trapframe *));
217 trap(struct trapframe *frame) in trap()
741 trap_pfault(struct trapframe *frame, bool usermode, vm_offset_t eva, in trap_pfault()
883 trap_fatal(struct trapframe *frame, vm_offset_t eva) in trap_fatal()
973 trap_user_dtrace(struct trapframe *frame, int (**hookp)(struct trapframe *)) in trap_user_dtrace() argument
[all …]
/freebsd/sys/arm/include/
H A Dundefined.h54 struct trapframe;
56 typedef int (*undef_handler_t) (unsigned int, unsigned int, struct trapframe *, int);
85 void undefinedinstruction(struct trapframe *);
/freebsd/sys/powerpc/fpu/
H A Dfpu_extern.h36 struct trapframe;
42 int fpu_emulate(struct trapframe *, struct fpu *);
43 int fpu_execute(struct trapframe *, struct fpemu *, union instr *);

123456789