Lines Matching refs:regs

17 void die(const char *str, struct pt_regs *regs, long err)  in die()  argument
29 show_regs(regs); in die()
34 if (!user_mode(regs) || in_interrupt()) in die()
35 dump_mem("Stack: ", regs->regs[15], THREAD_SIZE + in die()
38 notify_die(DIE_OOPS, str, regs, err, 255, SIGSEGV); in die()
46 crash_kexec(regs); in die()
57 void die_if_kernel(const char *str, struct pt_regs *regs, long err) in die_if_kernel() argument
59 if (!user_mode(regs)) in die_if_kernel()
60 die(str, regs, err); in die_if_kernel()
69 void die_if_no_fixup(const char *str, struct pt_regs *regs, long err) in die_if_no_fixup() argument
71 if (!user_mode(regs)) { in die_if_no_fixup()
73 fixup = search_exception_tables(regs->pc); in die_if_no_fixup()
75 regs->pc = fixup->fixup; in die_if_no_fixup()
79 die(str, regs, err); in die_if_no_fixup()
84 static void handle_BUG(struct pt_regs *regs) in handle_BUG() argument
87 unsigned long bugaddr = regs->pc; in handle_BUG()
99 tt = report_bug(bugaddr, regs); in handle_BUG()
101 regs->pc += instruction_size(bugaddr); in handle_BUG()
106 die("Kernel BUG", regs, TRAPA_BUG_OPCODE & 0xff); in handle_BUG()
132 regs->pc -= instruction_size(__raw_readw(regs->pc - 4)); in BUILD_TRAP_HANDLER()
134 if (notify_die(DIE_TRAP, "debug trap", regs, 0, vec & 0xff, in BUILD_TRAP_HANDLER()
149 regs->pc -= instruction_size(__raw_readw(regs->pc - 4)); in BUILD_TRAP_HANDLER()
151 if (notify_die(DIE_TRAP, "bug trap", regs, 0, TRAPA_BUG_OPCODE & 0xff, in BUILD_TRAP_HANDLER()
156 if (__kernel_text_address(instruction_pointer(regs))) { in BUILD_TRAP_HANDLER()
157 insn_size_t insn = *(insn_size_t *)instruction_pointer(regs); in BUILD_TRAP_HANDLER()
159 handle_BUG(regs); in BUILD_TRAP_HANDLER()
175 switch (notify_die(DIE_NMI, "NMI", regs, 0, vec & 0xff, SIGINT)) { in BUILD_TRAP_HANDLER()
180 die("Fatal Non-Maskable Interrupt", regs, SIGINT); in BUILD_TRAP_HANDLER()