Lines Matching full:regs

84 void die(struct pt_regs *regs, const char *str)  in die()  argument
97 show_regs(regs); in die()
98 show_stack(current, (unsigned long *)regs->regs[4], KERN_INFO); in die()
100 ret = notify_die(DIE_OOPS, str, regs, 0, trap_no(regs), SIGSEGV); in die()
115 void do_trap(struct pt_regs *regs, int signo, int code, unsigned long addr) in do_trap() argument
123 print_vma_addr(KERN_CONT " in ", instruction_pointer(regs)); in do_trap()
125 show_regs(regs); in do_trap()
131 static void do_trap_error(struct pt_regs *regs, int signo, int code, in do_trap_error() argument
134 current->thread.trap_no = trap_no(regs); in do_trap_error()
136 if (user_mode(regs)) { in do_trap_error()
137 do_trap(regs, signo, code, addr); in do_trap_error()
139 if (!fixup_exception(regs)) in do_trap_error()
140 die(regs, str); in do_trap_error()
145 asmlinkage __visible void name(struct pt_regs *regs) \
147 do_trap_error(regs, signo, code, regs->pc, "Oops - " str); \
157 asmlinkage void do_trap_misaligned(struct pt_regs *regs) in do_trap_misaligned() argument
160 csky_alignment(regs); in do_trap_misaligned()
162 current->thread.trap_no = trap_no(regs); in do_trap_misaligned()
163 do_trap_error(regs, SIGBUS, BUS_ADRALN, regs->pc, in do_trap_misaligned()
168 asmlinkage void do_trap_bkpt(struct pt_regs *regs) in do_trap_bkpt() argument
171 if (kprobe_single_step_handler(regs)) in do_trap_bkpt()
175 if (uprobe_single_step_handler(regs)) in do_trap_bkpt()
178 if (user_mode(regs)) { in do_trap_bkpt()
183 do_trap_error(regs, SIGILL, ILL_ILLTRP, regs->pc, in do_trap_bkpt()
187 asmlinkage void do_trap_illinsn(struct pt_regs *regs) in do_trap_illinsn() argument
189 current->thread.trap_no = trap_no(regs); in do_trap_illinsn()
192 if (kprobe_breakpoint_handler(regs)) in do_trap_illinsn()
196 if (uprobe_breakpoint_handler(regs)) in do_trap_illinsn()
200 if (*(uint16_t *)instruction_pointer(regs) != USR_BKPT) { in do_trap_illinsn()
206 do_trap_error(regs, SIGILL, ILL_ILLOPC, regs->pc, in do_trap_illinsn()
210 asmlinkage void do_trap_fpe(struct pt_regs *regs) in do_trap_fpe() argument
213 return fpu_fpe(regs); in do_trap_fpe()
215 do_trap_error(regs, SIGILL, ILL_ILLOPC, regs->pc, in do_trap_fpe()
220 asmlinkage void do_trap_priv(struct pt_regs *regs) in do_trap_priv() argument
223 if (user_mode(regs) && fpu_libc_helper(regs)) in do_trap_priv()
226 do_trap_error(regs, SIGILL, ILL_PRVOPC, regs->pc, in do_trap_priv()
230 asmlinkage void trap_c(struct pt_regs *regs) in trap_c() argument
232 switch (trap_no(regs)) { in trap_c()
234 do_trap_zdiv(regs); in trap_c()
237 do_trap_bkpt(regs); in trap_c()
240 do_trap_illinsn(regs); in trap_c()
244 do_trap_bkpt(regs); in trap_c()
247 do_trap_buserr(regs); in trap_c()
250 do_trap_misaligned(regs); in trap_c()
253 do_trap_fpe(regs); in trap_c()
256 do_trap_priv(regs); in trap_c()
259 do_trap_unknown(regs); in trap_c()