Lines Matching full:regs

86 void die(struct pt_regs *regs, const char *str)  in die()  argument
99 show_regs(regs); in die()
100 show_stack(current, (unsigned long *)regs->regs[4], KERN_INFO); in die()
102 ret = notify_die(DIE_OOPS, str, regs, 0, trap_no(regs), SIGSEGV); in die()
117 void do_trap(struct pt_regs *regs, int signo, int code, unsigned long addr) in do_trap() argument
125 print_vma_addr(KERN_CONT " in ", instruction_pointer(regs)); in do_trap()
127 show_regs(regs); in do_trap()
133 static void do_trap_error(struct pt_regs *regs, int signo, int code, in do_trap_error() argument
136 current->thread.trap_no = trap_no(regs); in do_trap_error()
138 if (user_mode(regs)) { in do_trap_error()
139 do_trap(regs, signo, code, addr); in do_trap_error()
141 if (!fixup_exception(regs)) in do_trap_error()
142 die(regs, str); in do_trap_error()
147 asmlinkage __visible void name(struct pt_regs *regs) \
149 do_trap_error(regs, signo, code, regs->pc, "Oops - " str); \
159 asmlinkage void do_trap_misaligned(struct pt_regs *regs) in do_trap_misaligned() argument
162 csky_alignment(regs); in do_trap_misaligned()
164 current->thread.trap_no = trap_no(regs); in do_trap_misaligned()
165 do_trap_error(regs, SIGBUS, BUS_ADRALN, regs->pc, in do_trap_misaligned()
170 asmlinkage void do_trap_bkpt(struct pt_regs *regs) in do_trap_bkpt() argument
173 if (kprobe_single_step_handler(regs)) in do_trap_bkpt()
177 if (uprobe_single_step_handler(regs)) in do_trap_bkpt()
180 if (user_mode(regs)) { in do_trap_bkpt()
185 do_trap_error(regs, SIGILL, ILL_ILLTRP, regs->pc, in do_trap_bkpt()
189 asmlinkage void do_trap_illinsn(struct pt_regs *regs) in do_trap_illinsn() argument
191 current->thread.trap_no = trap_no(regs); in do_trap_illinsn()
194 if (kprobe_breakpoint_handler(regs)) in do_trap_illinsn()
198 if (uprobe_breakpoint_handler(regs)) in do_trap_illinsn()
202 if (*(uint16_t *)instruction_pointer(regs) != USR_BKPT) { in do_trap_illinsn()
208 do_trap_error(regs, SIGILL, ILL_ILLOPC, regs->pc, in do_trap_illinsn()
212 asmlinkage void do_trap_fpe(struct pt_regs *regs) in do_trap_fpe() argument
215 return fpu_fpe(regs); in do_trap_fpe()
217 do_trap_error(regs, SIGILL, ILL_ILLOPC, regs->pc, in do_trap_fpe()
222 asmlinkage void do_trap_priv(struct pt_regs *regs) in do_trap_priv() argument
225 if (user_mode(regs) && fpu_libc_helper(regs)) in do_trap_priv()
228 do_trap_error(regs, SIGILL, ILL_PRVOPC, regs->pc, in do_trap_priv()
232 asmlinkage void trap_c(struct pt_regs *regs) in trap_c() argument
234 switch (trap_no(regs)) { in trap_c()
236 do_trap_zdiv(regs); in trap_c()
239 do_trap_bkpt(regs); in trap_c()
242 do_trap_illinsn(regs); in trap_c()
246 do_trap_bkpt(regs); in trap_c()
249 do_trap_buserr(regs); in trap_c()
252 do_trap_misaligned(regs); in trap_c()
255 do_trap_fpe(regs); in trap_c()
258 do_trap_priv(regs); in trap_c()
261 do_trap_unknown(regs); in trap_c()