| /netbsd/src/sys/arch/aarch64/include/ |
| D | machdep.h | 87 struct trapframe; 90 void data_abort_handler(struct trapframe *, uint32_t); 99 void trap_doast(struct trapframe *); 101 void trap_el1t_sync(struct trapframe *); 102 void trap_el1t_irq(struct trapframe *); 103 void trap_el1t_fiq(struct trapframe *); 104 void trap_el1t_error(struct trapframe *); 105 void trap_el1h_sync(struct trapframe *); 106 void trap_el1h_fiq(struct trapframe *); 107 void trap_el1h_error(struct trapframe *); [all …]
|
| /netbsd/src/sys/arch/i386/include/ |
| D | reg.h | 54 #define tES (offsetof(struct trapframe, tf_es) / sizeof (int)) 55 #define tDS (offsetof(struct trapframe, tf_ds) / sizeof (int)) 56 #define tEDI (offsetof(struct trapframe, tf_edi) / sizeof (int)) 57 #define tESI (offsetof(struct trapframe, tf_esi) / sizeof (int)) 58 #define tEBP (offsetof(struct trapframe, tf_ebp) / sizeof (int)) 59 #define tEBX (offsetof(struct trapframe, tf_ebx) / sizeof (int)) 60 #define tEDX (offsetof(struct trapframe, tf_edx) / sizeof (int)) 61 #define tECX (offsetof(struct trapframe, tf_ecx) / sizeof (int)) 62 #define tEAX (offsetof(struct trapframe, tf_eax) / sizeof (int)) 64 #define tEIP (offsetof(struct trapframe, tf_eip) / sizeof (int)) [all …]
|
| /netbsd/src/sys/arch/sh3/sh3/ |
| D | genassym.cf | 41 define TF_SIZE sizeof(struct trapframe) 42 define TF_EXPEVT offsetof(struct trapframe, tf_expevt) 43 define TF_UBC offsetof(struct trapframe, tf_ubc) 44 define TF_SPC offsetof(struct trapframe, tf_spc) 45 define TF_SSR offsetof(struct trapframe, tf_ssr) 46 define TF_GBR offsetof(struct trapframe, tf_gbr) 47 define TF_MACL offsetof(struct trapframe, tf_macl) 48 define TF_MACH offsetof(struct trapframe, tf_mach) 49 define TF_PR offsetof(struct trapframe, tf_pr) 50 define TF_R14 offsetof(struct trapframe, tf_r14) [all …]
|
| /netbsd/src/sys/arch/mips/mips/ |
| D | genassym.cf | 188 define TF_SIZ sizeof(struct trapframe) 189 define TF_REG_ZERO offsetof(struct trapframe, tf_regs[_R_ZERO]) 190 define TF_REG_AST offsetof(struct trapframe, tf_regs[_R_AST]) 191 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]) [all …]
|
| D | mips_emul.c | 50 static inline void send_sigsegv(intptr_t, uint32_t, struct trapframe *, 52 static inline void update_pc(struct trapframe *, uint32_t); 54 static void mips_emul_ll(uint32_t, struct trapframe *, uint32_t); 55 static void mips_emul_sc(uint32_t, struct trapframe *, uint32_t); 70 mips_emul_branch(struct trapframe *tf, vaddr_t instpc, uint32_t fpuCSR, in mips_emul_branch() 193 struct trapframe *tf) in mips_emul_inst() 268 send_sigsegv(intptr_t vaddr, uint32_t exccode, struct trapframe *tf, in send_sigsegv() 284 update_pc(struct trapframe *tf, uint32_t cause) in update_pc() 299 mips_emul_ll(uint32_t inst, struct trapframe *tf, uint32_t cause) in mips_emul_ll() 332 mips_emul_sc(uint32_t inst, struct trapframe *tf, uint32_t cause) in mips_emul_sc() [all …]
|
| /netbsd/src/sys/arch/mips/include/ |
| D | locore.h | 336 struct trapframe; 338 void trap(uint32_t, uint32_t, vaddr_t, vaddr_t, struct trapframe *); 341 void mips_fpu_trap(vaddr_t, struct trapframe *); 342 void mips_fpu_intr(vaddr_t, struct trapframe *); 344 vaddr_t mips_emul_branch(struct trapframe *, vaddr_t, uint32_t, bool); 345 void mips_emul_inst(uint32_t, uint32_t, vaddr_t, struct trapframe *); 347 void mips_emul_fp(uint32_t, struct trapframe *, uint32_t); 348 void mips_emul_branchdelayslot(uint32_t, struct trapframe *, uint32_t); 350 void mips_emul_special(uint32_t, struct trapframe *, uint32_t); 351 void mips_emul_special3(uint32_t, struct trapframe *, uint32_t); [all …]
|
| /netbsd/src/sys/arch/alpha/alpha/ |
| D | ipifuncs.c | 61 typedef void (*ipifunc_t)(struct cpu_info *, struct trapframe *); 63 static void alpha_ipi_halt(struct cpu_info *, struct trapframe *); 64 static void alpha_ipi_primary_cc(struct cpu_info *, struct trapframe *); 65 static void alpha_ipi_ast(struct cpu_info *, struct trapframe *); 66 static void alpha_ipi_pause(struct cpu_info *, struct trapframe *); 67 static void alpha_ipi_xcall(struct cpu_info *, struct trapframe *); 68 static void alpha_ipi_generic(struct cpu_info *, struct trapframe *); 115 alpha_ipi_process(struct cpu_info *ci, struct trapframe *framep) in alpha_ipi_process() 222 struct trapframe * const framep __unused) in alpha_ipi_halt() 256 struct trapframe * const framep __unused) in alpha_ipi_primary_cc() [all …]
|
| /netbsd/src/sys/arch/hppa/hppa/ |
| D | trap.c | 175 void syscall(struct trapframe *, int *); 178 struct trapframe *sanity_frame; 181 void frame_sanity_check(const char *, int, int, struct trapframe *, 192 static void user_backtrace(struct trapframe *, struct lwp *, int); 199 userret(struct lwp *l, struct trapframe *tf) in userret() 230 trap_kdebug(int type, int code, struct trapframe *frame) in trap_kdebug() 352 user_backtrace(struct trapframe *tf, struct lwp *l, int type) in user_backtrace() 404 frame_sanity_check(const char *func, int line, int type, struct trapframe *tf, in frame_sanity_check() 512 offsetof(struct trapframe, tf_r1 ) / sizeof(register_t), 513 offsetof(struct trapframe, tf_rp ) / sizeof(register_t), [all …]
|
| /netbsd/src/sys/arch/ia64/include/ |
| D | md_var.h | 69 struct trapframe; 82 int do_ast(struct trapframe *); 83 void ia32_trap(int, struct trapframe *); 91 int interrupt(uint64_t, struct trapframe *); 97 int syscall(struct trapframe *); 98 void trap(int, struct trapframe *); 99 void trap_panic(int, struct trapframe *); 100 int unaligned_fixup(struct trapframe *, struct thread *);
|
| D | proc.h | 24 struct trapframe *md_tf; /* trap/syscall registers */ 38 void (*md_syscall)(struct lwp *, u_int64_t, struct trapframe *); 43 #define UAREA_TF_OFFSET (UAREA_PCB_OFFSET - sizeof(struct trapframe)) 46 #define UAREA_STACK_SIZE (USPACE - 16 - sizeof(struct trapframe) - sizeof(struct pcb))
|
| /netbsd/src/sys/arch/powerpc/powerpc/ |
| D | intr_stubs.c | 181 void intr_critintr(struct trapframe *) __stub; 184 intr_critintr(struct trapframe *tf) in intr_critintr() 190 void intr_extintr(struct trapframe *) __stub; 193 intr_extintr(struct trapframe *tf) in intr_extintr() 199 void intr_decrintr(struct trapframe *) __stub; 202 intr_decrintr(struct trapframe *tf) in intr_decrintr() 208 void intr_fitintr(struct trapframe *) __stub; 211 intr_fitintr(struct trapframe *tf) in intr_fitintr() 217 void intr_wdogintr(struct trapframe *) __stub; 220 intr_wdogintr(struct trapframe *tf) in intr_wdogintr()
|
| /netbsd/src/sys/arch/alpha/include/ |
| D | alpha.h | 76 struct trapframe; 97 void ast(struct trapframe *); 100 uint64_t console_restart(struct trapframe *); 104 void frametoreg(const struct trapframe *, struct reg *); 108 struct trapframe *); 109 void machine_check(unsigned long, struct trapframe *, unsigned long, 113 void regdump(struct trapframe *); 114 void regtoframe(const struct reg *, struct trapframe *); 117 struct trapframe *);
|
| /netbsd/src/sys/arch/sparc/sparc/ |
| D | memreg.h | 69 struct trapframe; 70 void memerr4_4c(unsigned, u_int, u_int, u_int, u_int, struct trapframe *); 71 void memerr4m(unsigned, u_int, u_int, struct trapframe *); 72 void viking_memerr(unsigned, u_int, u_int, struct trapframe *); 73 void hypersparc_memerr(unsigned, u_int, u_int, struct trapframe *);
|
| D | syscall.c | 96 static inline int handle_new(struct trapframe *, register_t *); 97 static inline int getargs(struct proc *p, struct trapframe *, 100 static inline void save_fpu(struct trapframe *); 102 void syscall(register_t, struct trapframe *, register_t); 105 handle_new(struct trapframe *tf, register_t *code) in handle_new() 135 getargs(struct proc *p, struct trapframe *tf, register_t *code, in getargs() 179 save_fpu(struct trapframe *tf) in save_fpu() 213 syscall(register_t code, struct trapframe *tf, register_t pc) in syscall()
|
| D | emul.c | 55 static inline int readgpreg(struct trapframe *, int, void *); 57 static inline int writegpreg(struct trapframe *, int, const void *); 59 static inline int decodeaddr(struct trapframe *, union instr *, void *); 60 static int muldiv(struct trapframe *, union instr *, int32_t *, int32_t *, 67 readgpreg(struct trapframe *tf, int i, void *val) in readgpreg() 82 writegpreg(struct trapframe *tf, int i, const void *val) in writegpreg() 115 decodeaddr(struct trapframe *tf, union instr *code, void *val) in decodeaddr() 133 muldiv(struct trapframe *tf, in muldiv() 220 fixalign(struct lwp *l, struct trapframe *tf, void **data_address) in fixalign() 385 emulinstr(int pc, struct trapframe *tf) in emulinstr()
|
| /netbsd/src/sys/arch/amd64/amd64/ |
| D | genassym.cf | 190 define TF_RDI offsetof(struct trapframe, tf_rdi) 191 define TF_RSI offsetof(struct trapframe, tf_rsi) 192 define TF_RDX offsetof(struct trapframe, tf_rdx) 193 define TF_RCX offsetof(struct trapframe, tf_rcx) 194 define TF_R8 offsetof(struct trapframe, tf_r8) 195 define TF_R9 offsetof(struct trapframe, tf_r9) 196 define TF_R10 offsetof(struct trapframe, tf_r10) 197 define TF_R11 offsetof(struct trapframe, tf_r11) 198 define TF_R12 offsetof(struct trapframe, tf_r12) 199 define TF_R13 offsetof(struct trapframe, tf_r13) [all …]
|
| D | trap.c | 123 void nmitrap(struct trapframe *); 124 void doubletrap(struct trapframe *); 125 void trap(struct trapframe *); 153 static void sigdebug(const struct trapframe *, const ksiginfo_t *, int); 160 onfault_restore(struct trapframe *frame, void *onfault, int error) in onfault_restore() 167 onfault_handler(const struct pcb *pcb, const struct trapframe *tf) in onfault_handler() 192 trap_print(const struct trapframe *frame, const lwp_t *l) in trap_print() 213 nmitrap(struct trapframe *frame) in nmitrap() 230 doubletrap(struct trapframe *frame) in doubletrap() 258 trap(struct trapframe *frame) in trap() [all …]
|
| /netbsd/src/sys/arch/powerpc/include/booke/ |
| D | intr.h | 123 struct trapframe; 133 void (*intrsw_critintr)(struct trapframe *); 134 void (*intrsw_decrintr)(struct trapframe *); 135 void (*intrsw_extintr)(struct trapframe *); 136 void (*intrsw_fitintr)(struct trapframe *); 137 void (*intrsw_wdogintr)(struct trapframe *);
|
| /netbsd/src/sys/arch/powerpc/booke/ |
| D | trap.c | 74 void trap(enum ppc_booke_exceptions, struct trapframe *); 101 usertrap_p(struct trapframe *tf) in usertrap_p() 107 mchk_exception(struct trapframe *tf, ksiginfo_t *ksi) in mchk_exception() 127 get_faulttype(const struct trapframe * const tf) in get_faulttype() 133 get_faultmap(const struct trapframe * const tf, register_t psl_mask) in get_faultmap() 145 trap_pte_lookup(struct trapframe *tf, vaddr_t va, register_t psl_mask) in trap_pte_lookup() 213 dsi_exception(struct trapframe *tf, ksiginfo_t *ksi) in dsi_exception() 266 isi_exception(struct trapframe *tf, ksiginfo_t *ksi) in isi_exception() 342 dtlb_exception(struct trapframe *tf, ksiginfo_t *ksi) in dtlb_exception() 377 itlb_exception(struct trapframe *tf, ksiginfo_t *ksi) in itlb_exception() [all …]
|
| /netbsd/src/sys/arch/sparc64/sparc64/ |
| D | vm_machdep.c | 147 #define TOPFRAMEOFF (USPACE-sizeof(struct trapframe)-CC64FSZ) 150 #undef trapframe 151 #define trapframe trapframe64 macro 154 #define TOPFRAMEOFF (USPACE-sizeof(struct trapframe)-CC64FSZ) 186 struct trapframe *tf2; in cpu_lwp_fork() 237 tf2 = l2->l_md.md_tf = (struct trapframe *) in cpu_lwp_fork() 241 *tf2 = *(struct trapframe *)((long)opcb + USPACE - sizeof(*tf2)); in cpu_lwp_fork() 359 struct trapframe *tf = l->l_md.md_tf; in cpu_lwp_setprivate()
|
| /netbsd/src/sys/arch/sun2/sun2/ |
| D | trap.c | 133 void trap(struct trapframe *, int type, u_int code, u_int v); 134 void trap_kdebug(int type, struct trapframe tf); 135 int _nodb_trap(int type, struct trapframe *); 136 void straytrap(struct trapframe); 138 static void userret(struct lwp *, struct trapframe *, u_quad_t); 203 userret(struct lwp *l, struct trapframe *tf, u_quad_t oticks) in userret() 240 trap(struct trapframe *tf, int type, u_int code, u_int v) in trap() 606 _nodb_trap(int type, struct trapframe *tf) in _nodb_trap() 632 trap_kdebug(int type, struct trapframe tf) in trap_kdebug() 655 straytrap(struct trapframe tf) in straytrap()
|
| /netbsd/src/sys/arch/sun3/sun3/ |
| D | trap.c | 142 void trap(struct trapframe *, int type, u_int code, u_int v); 143 void trap_kdebug(int type, struct trapframe tf); 144 int _nodb_trap(int type, struct trapframe *); 145 void straytrap(struct trapframe); 147 static void userret(struct lwp *, struct trapframe *, u_quad_t); 212 userret(struct lwp *l, struct trapframe *tf, u_quad_t oticks) in userret() 249 trap(struct trapframe *tf, int type, u_int code, u_int v) in trap() 621 _nodb_trap(int type, struct trapframe *tf) in _nodb_trap() 647 trap_kdebug(int type, struct trapframe tf) in trap_kdebug() 670 straytrap(struct trapframe tf) in straytrap()
|
| /netbsd/src/sys/arch/ia64/ia64/ |
| D | syscall.c | 45 void syscall_plain(struct lwp *, u_int64_t, struct trapframe *); 46 void syscall_fancy(struct lwp *, u_int64_t, struct trapframe *); 62 syscall_plain(struct lwp *l, u_int64_t code, struct trapframe *framep) in syscall_plain() 69 syscall_fancy(struct lwp *l, u_int64_t code, struct trapframe *framep) in syscall_fancy()
|
| /netbsd/src/sys/arch/x86/x86/ |
| D | syscall.c | 57 static void syscall(struct trapframe *); 62 struct trapframe *tf = l->l_md.md_regs; in md_child_return() 86 void syscall(struct trapframe *); 91 syscall(struct trapframe *frame) in syscall() 100 CTASSERT(offsetof(struct trapframe, tf_arg9) >= in syscall()
|
| /netbsd/src/sys/arch/arm/arm32/ |
| D | genassym.cf | 208 define TF_SPSR offsetof(struct trapframe, tf_spsr) 209 define TF_FILL offsetof(struct trapframe, tf_fill) 210 define TF_R0 offsetof(struct trapframe, tf_r0) 211 define TF_R4 offsetof(struct trapframe, tf_r4) 212 define TF_R6 offsetof(struct trapframe, tf_r6) 213 define TF_R8 offsetof(struct trapframe, tf_r8) 214 define TF_R10 offsetof(struct trapframe, tf_r10) 215 define TF_R12 offsetof(struct trapframe, tf_r12) 216 define TF_USR_SP offsetof(struct trapframe, tf_usr_sp) 217 define TF_USR_LR offsetof(struct trapframe, tf_usr_lr) [all …]
|