Home
last modified time | relevance | path

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

123456789

/freebsd-14.2/sys/powerpc/powerpc/
H A Dgenassym.c147 ASSYM(FRAME_0, offsetof(struct trapframe, fixreg[0]));
148 ASSYM(FRAME_1, offsetof(struct trapframe, fixreg[1]));
149 ASSYM(FRAME_2, offsetof(struct trapframe, fixreg[2]));
150 ASSYM(FRAME_3, offsetof(struct trapframe, fixreg[3]));
179 ASSYM(FRAME_LR, offsetof(struct trapframe, lr));
180 ASSYM(FRAME_CR, offsetof(struct trapframe, cr));
181 ASSYM(FRAME_CTR, offsetof(struct trapframe, ctr));
182 ASSYM(FRAME_XER, offsetof(struct trapframe, xer));
183 ASSYM(FRAME_SRR0, offsetof(struct trapframe, srr0));
184 ASSYM(FRAME_SRR1, offsetof(struct trapframe, srr1));
[all …]
H A Dtrap.c84 static void trap_fatal(struct trapframe *frame);
90 static int handle_onfault(struct trapframe *frame);
91 static void syscall(struct trapframe *frame);
114 int (*dtrace_invop_jump_addr)(struct trapframe *);
192 frame_is_trap_inst(struct trapframe *frame) in frame_is_trap_inst()
202 trap(struct trapframe *frame) in trap()
516 trap_fatal(struct trapframe *frame) in trap_fatal()
613 handle_onfault(struct trapframe *frame) in handle_onfault()
655 struct trapframe *frame; in cpu_fetch_syscall_args()
741 syscall(struct trapframe *frame) in syscall()
[all …]
H A Dexec_machdep.c152 struct trapframe *tf; in sendsig()
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()
805 struct trapframe *tf; in set_regs32()
823 struct trapframe *tf; in fill_regs32()
[all …]
/freebsd-14.2/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.c82 struct trapframe *frame; in fill_regs()
102 struct trapframe *frame; in set_regs()
144 struct trapframe *frame; in set_fpregs()
176 struct trapframe *tf; in exec_setregs()
182 memset(tf, 0, sizeof(struct trapframe)); in exec_setregs()
193 CTASSERT(sizeof(((struct trapframe *)0)->tf_a) ==
195 CTASSERT(sizeof(((struct trapframe *)0)->tf_s) ==
197 CTASSERT(sizeof(((struct trapframe *)0)->tf_t) ==
209 struct trapframe *tf = td->td_frame; in get_mcontext()
234 struct trapframe *tf; in set_mcontext()
[all …]
H A Dvm_machdep.c70 struct trapframe *tf; in cpu_fork()
83 tf = (struct trapframe *)STACKALIGN((struct trapframe *)pcb2 - 1); in cpu_fork()
130 struct trapframe *frame; in cpu_set_syscall_retval()
165 bcopy(td0->td_frame, td->td_frame, sizeof(struct trapframe)); in cpu_copy_thread()
186 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-14.2/sys/amd64/amd64/
H A Dgenassym.c161 ASSYM(TF_R15, offsetof(struct trapframe, tf_r15));
162 ASSYM(TF_R14, offsetof(struct trapframe, tf_r14));
167 ASSYM(TF_R9, offsetof(struct trapframe, tf_r9));
168 ASSYM(TF_R8, offsetof(struct trapframe, tf_r8));
180 ASSYM(TF_CS, offsetof(struct trapframe, tf_cs));
183 ASSYM(TF_SS, offsetof(struct trapframe, tf_ss));
184 ASSYM(TF_DS, offsetof(struct trapframe, tf_ds));
185 ASSYM(TF_ES, offsetof(struct trapframe, tf_es));
186 ASSYM(TF_FS, offsetof(struct trapframe, tf_fs));
187 ASSYM(TF_GS, offsetof(struct trapframe, tf_gs));
[all …]
H A Dtrap.c108 void trap_check(struct trapframe *frame);
115 int (**hook)(struct trapframe *));
215 trap(struct trapframe *frame) in trap()
656 trap_check(struct trapframe *frame) in trap_check()
668 trap_is_smap(struct trapframe *frame) in trap_is_smap()
686 trap_is_pti(struct trapframe *frame) in trap_is_pti()
963 trap_user_dtrace(struct trapframe *frame, int (**hookp)(struct trapframe *)) in trap_user_dtrace() argument
965 int (*hook)(struct trapframe *); in trap_user_dtrace()
982 dblfault_handler(struct trapframe *frame) in dblfault_handler()
1019 struct trapframe *frame; in cpu_fetch_syscall_args_fallback()
[all …]
/freebsd-14.2/sys/arm64/arm64/
H A Dgenassym.c73 ASSYM(TF_SIZE, sizeof(struct trapframe));
74 ASSYM(TF_SP, offsetof(struct trapframe, tf_sp));
75 ASSYM(TF_LR, offsetof(struct trapframe, tf_lr));
76 ASSYM(TF_ELR, offsetof(struct trapframe, tf_elr));
77 ASSYM(TF_SPSR, offsetof(struct trapframe, tf_spsr));
78 ASSYM(TF_ESR, offsetof(struct trapframe, tf_esr));
79 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 *);
194 svc_handler(struct thread *td, struct trapframe *frame) in svc_handler()
432 print_registers(struct trapframe *frame) in print_registers()
747 do_serror(struct trapframe *frame) in do_serror()
[all …]
H A Dvm_machdep.c67 struct trapframe *tf; in cpu_fork()
97 tf = (struct trapframe *)STACKALIGN((struct trapframe *)pcb2 - 1); in cpu_fork()
147 struct trapframe *frame; in cpu_set_syscall_retval()
181 bcopy(td0->td_frame, td->td_frame, sizeof(struct trapframe)); in cpu_copy_thread()
213 struct trapframe *tf = td->td_frame; in cpu_set_upcall()
268 td->td_frame = (struct trapframe *)STACKALIGN( in cpu_thread_alloc()
269 (struct trapframe *)td->td_pcb - 1); in cpu_thread_alloc()
/freebsd-14.2/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
187 dtrace_trap(struct trapframe *frame, u_int type) in dtrace_trap()
238 dtrace_load64(uint64_t *addr, struct trapframe *frame, u_int reg) in dtrace_load64()
250 dtrace_store64(uint64_t *addr, struct trapframe *frame, u_int reg) in dtrace_store64()
263 dtrace_invop_start(struct trapframe *frame) in dtrace_invop_start()
/freebsd-14.2/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-14.2/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-14.2/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-14.2/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-14.2/sys/arm/arm/
H A Dvm_machdep.c84 _Static_assert((sizeof(struct trapframe) % 8) == 0, "Bad alignment");
97 struct trapframe *tf; in cpu_fork()
123 td2->td_frame = (struct trapframe *)pcb2 - 1; in cpu_fork()
165 struct trapframe *frame; in cpu_set_syscall_retval()
206 bcopy(td0->td_frame, td->td_frame, sizeof(struct trapframe)); in cpu_copy_thread()
234 struct trapframe *tf = td->td_frame; in cpu_set_upcall()
270 td->td_frame = (struct trapframe *)((caddr_t)td->td_pcb) - 1; in cpu_thread_alloc()
/freebsd-14.2/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 *);
H A Dframe.h51 struct trapframe { struct
79 #define FRAMELEN roundup(sizeof(struct trapframe) + \
81 #define trapframe(td) ((td)->td_frame) macro
/freebsd-14.2/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-14.2/sys/cddl/dev/dtrace/amd64/
H A Ddtrace_subr.c50 extern int (*dtrace_invop_jump_addr)(struct trapframe *);
52 int dtrace_invop(uintptr_t, struct trapframe *, void **);
53 int dtrace_invop_start(struct trapframe *frame);
58 int (*dtih_func)(uintptr_t, struct trapframe *, uintptr_t);
65 dtrace_invop(uintptr_t addr, struct trapframe *frame, void **scratch) in dtrace_invop()
84 dtrace_invop_add(int (*func)(uintptr_t, struct trapframe *, uintptr_t)) in dtrace_invop_add() argument
95 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-14.2/sys/i386/i386/
H A Dgenassym.c145 ASSYM(TF_FS, offsetof(struct trapframe, tf_fs));
146 ASSYM(TF_ES, offsetof(struct trapframe, tf_es));
147 ASSYM(TF_DS, offsetof(struct trapframe, tf_ds));
148 ASSYM(TF_TRAPNO, offsetof(struct trapframe, tf_trapno));
149 ASSYM(TF_ERR, offsetof(struct trapframe, tf_err));
150 ASSYM(TF_EIP, offsetof(struct trapframe, tf_eip));
151 ASSYM(TF_CS, offsetof(struct trapframe, tf_cs));
152 ASSYM(TF_EFLAGS, offsetof(struct trapframe, tf_eflags));
153 ASSYM(TF_SZ, sizeof(struct trapframe));
H A Dtrap.c109 void trap(struct trapframe *frame);
110 void syscall(struct trapframe *frame);
113 static void trap_fatal(struct trapframe *, vm_offset_t);
115 static bool trap_user_dtrace(struct trapframe *,
116 int (**hook)(struct trapframe *));
219 trap(struct trapframe *frame) in trap()
901 trap_fatal(struct trapframe *frame, vm_offset_t eva) in trap_fatal()
991 trap_user_dtrace(struct trapframe *frame, int (**hookp)(struct trapframe *)) in trap_user_dtrace() argument
993 int (*hook)(struct trapframe *); in trap_user_dtrace()
1048 struct trapframe *frame; in cpu_fetch_syscall_args()
[all …]
/freebsd-14.2/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-14.2/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