Lines Matching refs:regs

72 int (*__debugger)(struct pt_regs *regs) __read_mostly;
73 int (*__debugger_ipi)(struct pt_regs *regs) __read_mostly;
74 int (*__debugger_bpt)(struct pt_regs *regs) __read_mostly;
75 int (*__debugger_sstep)(struct pt_regs *regs) __read_mostly;
76 int (*__debugger_iabr_match)(struct pt_regs *regs) __read_mostly;
77 int (*__debugger_break_match)(struct pt_regs *regs) __read_mostly;
78 int (*__debugger_fault_handler)(struct pt_regs *regs) __read_mostly;
180 static unsigned long oops_begin(struct pt_regs *regs) in oops_begin() argument
206 static void oops_end(unsigned long flags, struct pt_regs *regs, in oops_end() argument
224 if (TRAP(regs) == 0x100) in oops_end()
227 crash_fadump(regs, "die oops"); in oops_end()
230 crash_kexec(regs); in oops_end()
261 static int __die(const char *str, struct pt_regs *regs, long err) in __die() argument
275 if (notify_die(DIE_OOPS, str, regs, err, 255, SIGSEGV) == NOTIFY_STOP) in __die()
279 show_regs(regs); in __die()
285 void die(const char *str, struct pt_regs *regs, long err) in die() argument
292 if (TRAP(regs) != 0x100) { in die()
293 if (debugger(regs)) in die()
297 flags = oops_begin(regs); in die()
298 if (__die(str, regs, err)) in die()
300 oops_end(flags, regs, err); in die()
304 void user_single_step_report(struct pt_regs *regs) in user_single_step_report() argument
306 force_sig_fault(SIGTRAP, TRAP_TRACE, (void __user *)regs->nip); in user_single_step_report()
309 static void show_signal_msg(int signr, struct pt_regs *regs, int code, in show_signal_msg() argument
326 addr, regs->nip, regs->link, code); in show_signal_msg()
328 print_vma_addr(KERN_CONT " in ", regs->nip); in show_signal_msg()
332 show_user_instructions(regs); in show_signal_msg()
335 static bool exception_common(int signr, struct pt_regs *regs, int code, in exception_common() argument
338 if (!user_mode(regs)) { in exception_common()
339 die("Exception in kernel mode", regs, signr); in exception_common()
343 show_signal_msg(signr, regs, code, addr); in exception_common()
345 if (arch_irqs_disabled() && !arch_irq_disabled_regs(regs)) in exception_common()
359 void _exception_pkey(struct pt_regs *regs, unsigned long addr, int key) in _exception_pkey() argument
361 if (!exception_common(SIGSEGV, regs, SEGV_PKUERR, addr)) in _exception_pkey()
367 void _exception(int signr, struct pt_regs *regs, int code, unsigned long addr) in _exception() argument
369 if (!exception_common(signr, regs, code, addr)) in _exception()
396 void hv_nmi_check_nonrecoverable(struct pt_regs *regs) in hv_nmi_check_nonrecoverable() argument
400 unsigned long nip = regs->nip; in hv_nmi_check_nonrecoverable()
402 if (!(regs->msr & MSR_RI)) in hv_nmi_check_nonrecoverable()
404 if (!(regs->msr & MSR_HV)) in hv_nmi_check_nonrecoverable()
406 if (regs->msr & MSR_PR) in hv_nmi_check_nonrecoverable()
436 regs->msr &= ~MSR_RI; in hv_nmi_check_nonrecoverable()
440 void system_reset_exception(struct pt_regs *regs) in system_reset_exception() argument
465 hv_nmi_check_nonrecoverable(regs); in system_reset_exception()
471 if (ppc_md.system_reset_exception(regs)) in system_reset_exception()
475 if (debugger(regs)) in system_reset_exception()
484 crash_fadump(regs, "System Reset"); in system_reset_exception()
486 crash_kexec(regs); in system_reset_exception()
493 crash_kexec_secondary(regs); in system_reset_exception()
499 die("System Reset", regs, SIGABRT); in system_reset_exception()
503 nmi_panic(regs, "System Reset"); in system_reset_exception()
509 die("Unrecoverable nested System Reset", regs, SIGABRT); in system_reset_exception()
512 if (!(regs->msr & MSR_RI)) { in system_reset_exception()
515 die("Unrecoverable System Reset", regs, SIGABRT); in system_reset_exception()
537 static inline int check_io_access(struct pt_regs *regs) in check_io_access() argument
540 unsigned long msr = regs->msr; in check_io_access()
542 unsigned int *nip = (unsigned int *)regs->nip; in check_io_access()
545 && (entry = search_exception_tables(regs->nip)) != NULL) { in check_io_access()
565 regs->gpr[rb] - _IO_BASE, nip); in check_io_access()
566 regs->msr |= MSR_RI; in check_io_access()
567 regs->nip = extable_fixup(entry); in check_io_access()
578 #define get_reason(regs) ((regs)->dsisr) argument
587 #define single_stepping(regs) (current->thread.debug.dbcr0 & DBCR0_IC) argument
588 #define clear_single_step(regs) (current->thread.debug.dbcr0 &= ~DBCR0_IC) argument
589 #define clear_br_trace(regs) do {} while(0) argument
593 #define get_reason(regs) ((regs)->msr) argument
602 #define single_stepping(regs) ((regs)->msr & MSR_SE) argument
603 #define clear_single_step(regs) ((regs)->msr &= ~MSR_SE) argument
604 #define clear_br_trace(regs) ((regs)->msr &= ~MSR_BE) argument
610 int machine_check_e500mc(struct pt_regs *regs) in machine_check_e500mc() argument
618 recoverable = fsl_rio_mcheck_exception(regs); in machine_check_e500mc()
717 int machine_check_e500(struct pt_regs *regs) in machine_check_e500() argument
722 if (fsl_rio_mcheck_exception(regs)) in machine_check_e500()
724 if (fsl_pci_mcheck_exception(regs)) in machine_check_e500()
759 int machine_check_generic(struct pt_regs *regs) in machine_check_generic() argument
764 int machine_check_e200(struct pt_regs *regs) in machine_check_e200() argument
789 int machine_check_generic(struct pt_regs *regs) in machine_check_generic() argument
791 unsigned long reason = regs->msr; in machine_check_generic()
825 void machine_check_exception(struct pt_regs *regs) in machine_check_exception() argument
854 recover = ppc_md.machine_check_exception(regs); in machine_check_exception()
856 recover = cur_cpu_spec->machine_check(regs); in machine_check_exception()
861 if (debugger_fault_handler(regs)) in machine_check_exception()
864 if (check_io_access(regs)) in machine_check_exception()
869 die("Machine check", regs, SIGBUS); in machine_check_exception()
872 if (!(regs->msr & MSR_RI)) in machine_check_exception()
873 die("Unrecoverable Machine check", regs, SIGBUS); in machine_check_exception()
881 void SMIException(struct pt_regs *regs) in SMIException() argument
883 die("System Management Interrupt", regs, SIGABRT); in SMIException()
887 static void p9_hmi_special_emu(struct pt_regs *regs) in p9_hmi_special_emu() argument
895 if (__get_user_inatomic(instr, (unsigned int __user *)regs->nip)) in p9_hmi_special_emu()
908 regs->nip, instr); in p9_hmi_special_emu()
913 msr = regs->msr; /* Grab msr before we flush the bits */ in p9_hmi_special_emu()
933 ea = regs->gpr[rb] + (ra ? regs->gpr[ra] : 0); in p9_hmi_special_emu()
943 regs->nip, instr, (unsigned long)addr); in p9_hmi_special_emu()
958 regs->nip, instr, (unsigned long)addr); in p9_hmi_special_emu()
964 smp_processor_id(), current->comm, current->pid, regs->nip, in p9_hmi_special_emu()
984 regs->nip, instr, msr); in p9_hmi_special_emu()
991 PPC_WARN_EMULATED(lxvw4x, regs); in p9_hmi_special_emu()
994 PPC_WARN_EMULATED(lxvh8x, regs); in p9_hmi_special_emu()
997 PPC_WARN_EMULATED(lxvd2x, regs); in p9_hmi_special_emu()
1000 PPC_WARN_EMULATED(lxvb16x, regs); in p9_hmi_special_emu()
1063 regs->nip += 4; in p9_hmi_special_emu()
1067 void handle_hmi_exception(struct pt_regs *regs) in handle_hmi_exception() argument
1071 old_regs = set_irq_regs(regs); in handle_hmi_exception()
1084 p9_hmi_special_emu(regs); in handle_hmi_exception()
1090 ppc_md.handle_hmi_exception(regs); in handle_hmi_exception()
1096 void unknown_exception(struct pt_regs *regs) in unknown_exception() argument
1101 regs->nip, regs->msr, regs->trap); in unknown_exception()
1103 _exception(SIGTRAP, regs, TRAP_UNK, 0); in unknown_exception()
1108 void instruction_breakpoint_exception(struct pt_regs *regs) in instruction_breakpoint_exception() argument
1112 if (notify_die(DIE_IABR_MATCH, "iabr_match", regs, 5, in instruction_breakpoint_exception()
1115 if (debugger_iabr_match(regs)) in instruction_breakpoint_exception()
1117 _exception(SIGTRAP, regs, TRAP_BRKPT, regs->nip); in instruction_breakpoint_exception()
1123 void RunModeException(struct pt_regs *regs) in RunModeException() argument
1125 _exception(SIGTRAP, regs, TRAP_UNK, 0); in RunModeException()
1128 void single_step_exception(struct pt_regs *regs) in single_step_exception() argument
1132 clear_single_step(regs); in single_step_exception()
1133 clear_br_trace(regs); in single_step_exception()
1135 if (kprobe_post_handler(regs)) in single_step_exception()
1138 if (notify_die(DIE_SSTEP, "single_step", regs, 5, in single_step_exception()
1141 if (debugger_sstep(regs)) in single_step_exception()
1144 _exception(SIGTRAP, regs, TRAP_TRACE, regs->nip); in single_step_exception()
1157 static void emulate_single_step(struct pt_regs *regs) in emulate_single_step() argument
1159 if (single_stepping(regs)) in emulate_single_step()
1160 single_step_exception(regs); in emulate_single_step()
1190 static void parse_fpe(struct pt_regs *regs) in parse_fpe() argument
1198 _exception(SIGFPE, regs, code, regs->nip); in parse_fpe()
1212 static int emulate_string_inst(struct pt_regs *regs, u32 instword) in emulate_string_inst() argument
1226 EA = (rA == 0) ? 0 : regs->gpr[rA]; in emulate_string_inst()
1232 num_bytes = regs->xer & 0x7f; in emulate_string_inst()
1248 if ((regs->msr & MSR_64BIT) == 0) in emulate_string_inst()
1259 regs->gpr[rT] = 0; in emulate_string_inst()
1260 regs->gpr[rT] |= val << shift; in emulate_string_inst()
1264 val = regs->gpr[rT] >> shift; in emulate_string_inst()
1284 static int emulate_popcntb_inst(struct pt_regs *regs, u32 instword) in emulate_popcntb_inst() argument
1292 tmp = regs->gpr[rs]; in emulate_popcntb_inst()
1296 regs->gpr[ra] = tmp; in emulate_popcntb_inst()
1301 static int emulate_isel(struct pt_regs *regs, u32 instword) in emulate_isel() argument
1310 tmp = (rA == 0) ? 0 : regs->gpr[rA]; in emulate_isel()
1311 bit = (regs->ccr >> (31 - BC)) & 0x1; in emulate_isel()
1313 regs->gpr[rT] = bit ? tmp : regs->gpr[rB]; in emulate_isel()
1319 static inline bool tm_abort_check(struct pt_regs *regs, int cause) in tm_abort_check() argument
1326 if (MSR_TM_TRANSACTIONAL(regs->msr)) { in tm_abort_check()
1334 static inline bool tm_abort_check(struct pt_regs *regs, int reason) in tm_abort_check() argument
1340 static int emulate_instruction(struct pt_regs *regs) in emulate_instruction() argument
1345 if (!user_mode(regs)) in emulate_instruction()
1347 CHECK_FULL_REGS(regs); in emulate_instruction()
1349 if (get_user(instword, (u32 __user *)(regs->nip))) in emulate_instruction()
1354 PPC_WARN_EMULATED(mfpvr, regs); in emulate_instruction()
1356 regs->gpr[rd] = mfspr(SPRN_PVR); in emulate_instruction()
1362 PPC_WARN_EMULATED(dcba, regs); in emulate_instruction()
1371 PPC_WARN_EMULATED(mcrxr, regs); in emulate_instruction()
1372 regs->ccr = (regs->ccr & ~msk) | ((regs->xer >> shift) & msk); in emulate_instruction()
1373 regs->xer &= ~0xf0000000UL; in emulate_instruction()
1379 if (tm_abort_check(regs, in emulate_instruction()
1382 PPC_WARN_EMULATED(string, regs); in emulate_instruction()
1383 return emulate_string_inst(regs, instword); in emulate_instruction()
1388 PPC_WARN_EMULATED(popcntb, regs); in emulate_instruction()
1389 return emulate_popcntb_inst(regs, instword); in emulate_instruction()
1394 PPC_WARN_EMULATED(isel, regs); in emulate_instruction()
1395 return emulate_isel(regs, instword); in emulate_instruction()
1400 PPC_WARN_EMULATED(sync, regs); in emulate_instruction()
1412 PPC_WARN_EMULATED(mfdscr, regs); in emulate_instruction()
1414 regs->gpr[rd] = mfspr(SPRN_DSCR); in emulate_instruction()
1423 PPC_WARN_EMULATED(mtdscr, regs); in emulate_instruction()
1425 current->thread.dscr = regs->gpr[rd]; in emulate_instruction()
1441 static int emulate_math(struct pt_regs *regs) in emulate_math() argument
1444 extern int do_mathemu(struct pt_regs *regs); in emulate_math()
1446 ret = do_mathemu(regs); in emulate_math()
1448 PPC_WARN_EMULATED(math, regs); in emulate_math()
1452 emulate_single_step(regs); in emulate_math()
1457 _exception(SIGFPE, regs, code, regs->nip); in emulate_math()
1461 _exception(SIGSEGV, regs, SEGV_MAPERR, regs->nip); in emulate_math()
1468 static inline int emulate_math(struct pt_regs *regs) { return -1; } in emulate_math() argument
1471 void program_check_exception(struct pt_regs *regs) in program_check_exception() argument
1474 unsigned int reason = get_reason(regs); in program_check_exception()
1481 parse_fpe(regs); in program_check_exception()
1488 if (debugger_bpt(regs)) in program_check_exception()
1491 if (kprobe_handler(regs)) in program_check_exception()
1495 if (notify_die(DIE_BPT, "breakpoint", regs, 5, 5, SIGTRAP) in program_check_exception()
1499 bugaddr = regs->nip; in program_check_exception()
1503 if (!is_kernel_addr(bugaddr) && !(regs->msr & MSR_IR)) in program_check_exception()
1506 if (!(regs->msr & MSR_PR) && /* not user-mode */ in program_check_exception()
1507 report_bug(bugaddr, regs) == BUG_TRAP_TYPE_WARN) { in program_check_exception()
1508 regs->nip += 4; in program_check_exception()
1511 _exception(SIGTRAP, regs, TRAP_BRKPT, regs->nip); in program_check_exception()
1531 if (user_mode(regs)) { in program_check_exception()
1532 _exception(SIGILL, regs, ILL_ILLOPN, regs->nip); in program_check_exception()
1537 regs->nip, regs->msr, get_paca()->tm_scratch); in program_check_exception()
1538 die("Unrecoverable exception", regs, SIGABRT); in program_check_exception()
1550 if (!user_mode(regs)) in program_check_exception()
1554 if (!arch_irq_disabled_regs(regs)) in program_check_exception()
1565 if (!emulate_math(regs)) in program_check_exception()
1570 switch (emulate_instruction(regs)) { in program_check_exception()
1572 regs->nip += 4; in program_check_exception()
1573 emulate_single_step(regs); in program_check_exception()
1576 _exception(SIGSEGV, regs, SEGV_MAPERR, regs->nip); in program_check_exception()
1583 _exception(SIGILL, regs, ILL_PRVOPC, regs->nip); in program_check_exception()
1585 _exception(SIGILL, regs, ILL_ILLOPC, regs->nip); in program_check_exception()
1596 void emulation_assist_interrupt(struct pt_regs *regs) in emulation_assist_interrupt() argument
1598 regs->msr |= REASON_ILLEGAL; in emulation_assist_interrupt()
1599 program_check_exception(regs); in emulation_assist_interrupt()
1603 void alignment_exception(struct pt_regs *regs) in alignment_exception() argument
1610 if (!arch_irq_disabled_regs(regs)) in alignment_exception()
1613 reason = get_reason(regs); in alignment_exception()
1621 if (tm_abort_check(regs, TM_CAUSE_ALIGNMENT | TM_CAUSE_PERSISTENT)) in alignment_exception()
1626 fixed = fix_alignment(regs); in alignment_exception()
1630 regs->nip += inst_length(reason); in alignment_exception()
1631 emulate_single_step(regs); in alignment_exception()
1644 if (user_mode(regs)) in alignment_exception()
1645 _exception(sig, regs, code, regs->dar); in alignment_exception()
1647 bad_page_fault(regs, regs->dar, sig); in alignment_exception()
1653 void StackOverflow(struct pt_regs *regs) in StackOverflow() argument
1656 current->comm, task_pid_nr(current), regs->gpr[1]); in StackOverflow()
1657 debugger(regs); in StackOverflow()
1658 show_regs(regs); in StackOverflow()
1662 void stack_overflow_exception(struct pt_regs *regs) in stack_overflow_exception() argument
1666 die("Kernel stack overflow", regs, SIGSEGV); in stack_overflow_exception()
1671 void kernel_fp_unavailable_exception(struct pt_regs *regs) in kernel_fp_unavailable_exception() argument
1676 "%lx at %lx\n", regs->trap, regs->nip); in kernel_fp_unavailable_exception()
1677 die("Unrecoverable FP Unavailable Exception", regs, SIGABRT); in kernel_fp_unavailable_exception()
1682 void altivec_unavailable_exception(struct pt_regs *regs) in altivec_unavailable_exception() argument
1686 if (user_mode(regs)) { in altivec_unavailable_exception()
1689 _exception(SIGILL, regs, ILL_ILLOPC, regs->nip); in altivec_unavailable_exception()
1694 "%lx at %lx\n", regs->trap, regs->nip); in altivec_unavailable_exception()
1695 die("Unrecoverable VMX/Altivec Unavailable Exception", regs, SIGABRT); in altivec_unavailable_exception()
1701 void vsx_unavailable_exception(struct pt_regs *regs) in vsx_unavailable_exception() argument
1703 if (user_mode(regs)) { in vsx_unavailable_exception()
1706 _exception(SIGILL, regs, ILL_ILLOPC, regs->nip); in vsx_unavailable_exception()
1711 "%lx at %lx\n", regs->trap, regs->nip); in vsx_unavailable_exception()
1712 die("Unrecoverable VSX Unavailable Exception", regs, SIGABRT); in vsx_unavailable_exception()
1716 static void tm_unavailable(struct pt_regs *regs) in tm_unavailable() argument
1719 if (user_mode(regs)) { in tm_unavailable()
1721 regs->msr |= MSR_TM; in tm_unavailable()
1728 "%lx at %lx\n", regs->trap, regs->nip); in tm_unavailable()
1729 die("Unrecoverable TM Unavailable Exception", regs, SIGABRT); in tm_unavailable()
1732 void facility_unavailable_exception(struct pt_regs *regs) in facility_unavailable_exception() argument
1753 hv = (TRAP(regs) == 0xf80); in facility_unavailable_exception()
1766 if (!user_mode(regs)) { in facility_unavailable_exception()
1768 facility, status, regs->nip); in facility_unavailable_exception()
1769 die("Unexpected facility unavailable exception", regs, SIGABRT); in facility_unavailable_exception()
1773 if (!arch_irq_disabled_regs(regs)) in facility_unavailable_exception()
1793 if (get_user(instword, (u32 __user *)(regs->nip))) { in facility_unavailable_exception()
1802 current->thread.dscr = regs->gpr[rd]; in facility_unavailable_exception()
1811 if (emulate_instruction(regs)) { in facility_unavailable_exception()
1815 regs->nip += 4; in facility_unavailable_exception()
1816 emulate_single_step(regs); in facility_unavailable_exception()
1838 tm_unavailable(regs); in facility_unavailable_exception()
1843 hv ? "Hypervisor " : "", facility, status, regs->nip, regs->msr); in facility_unavailable_exception()
1846 _exception(SIGILL, regs, ILL_ILLOPC, regs->nip); in facility_unavailable_exception()
1852 void fp_unavailable_tm(struct pt_regs *regs) in fp_unavailable_tm() argument
1857 regs->nip, regs->msr); in fp_unavailable_tm()
1885 void altivec_unavailable_tm(struct pt_regs *regs) in altivec_unavailable_tm() argument
1893 regs->nip, regs->msr); in altivec_unavailable_tm()
1900 void vsx_unavailable_tm(struct pt_regs *regs) in vsx_unavailable_tm() argument
1911 regs->nip, regs->msr); in vsx_unavailable_tm()
1925 static void performance_monitor_exception_nmi(struct pt_regs *regs) in performance_monitor_exception_nmi() argument
1931 perf_irq(regs); in performance_monitor_exception_nmi()
1936 static void performance_monitor_exception_async(struct pt_regs *regs) in performance_monitor_exception_async() argument
1942 perf_irq(regs); in performance_monitor_exception_async()
1947 void performance_monitor_exception(struct pt_regs *regs) in performance_monitor_exception() argument
1955 if (IS_ENABLED(CONFIG_PPC64) && unlikely(arch_irq_disabled_regs(regs))) in performance_monitor_exception()
1956 performance_monitor_exception_nmi(regs); in performance_monitor_exception()
1958 performance_monitor_exception_async(regs); in performance_monitor_exception()
1962 static void handle_debug(struct pt_regs *regs, unsigned long debug_status) in handle_debug() argument
1974 do_send_trap(regs, mfspr(SPRN_DAC1), debug_status, in handle_debug()
1979 do_send_trap(regs, mfspr(SPRN_DAC2), debug_status, in handle_debug()
1985 do_send_trap(regs, mfspr(SPRN_IAC1), debug_status, in handle_debug()
1990 do_send_trap(regs, mfspr(SPRN_IAC2), debug_status, in handle_debug()
1996 do_send_trap(regs, mfspr(SPRN_IAC3), debug_status, in handle_debug()
2001 do_send_trap(regs, mfspr(SPRN_IAC4), debug_status, in handle_debug()
2012 regs->msr |= MSR_DE; in handle_debug()
2021 void DebugException(struct pt_regs *regs, unsigned long debug_status) in DebugException() argument
2031 regs->msr &= ~MSR_DE; in DebugException()
2039 if (user_mode(regs)) { in DebugException()
2042 regs->msr |= MSR_DE; in DebugException()
2046 if (kprobe_post_handler(regs)) in DebugException()
2049 if (notify_die(DIE_SSTEP, "block_step", regs, 5, in DebugException()
2053 if (debugger_sstep(regs)) in DebugException()
2056 regs->msr &= ~MSR_DE; in DebugException()
2063 if (kprobe_post_handler(regs)) in DebugException()
2066 if (notify_die(DIE_SSTEP, "single_step", regs, 5, in DebugException()
2071 if (debugger_sstep(regs)) in DebugException()
2074 if (user_mode(regs)) { in DebugException()
2078 regs->msr |= MSR_DE; in DebugException()
2084 _exception(SIGTRAP, regs, TRAP_TRACE, regs->nip); in DebugException()
2086 handle_debug(regs, debug_status); in DebugException()
2092 void altivec_assist_exception(struct pt_regs *regs) in altivec_assist_exception() argument
2096 if (!user_mode(regs)) { in altivec_assist_exception()
2098 " at %lx\n", regs->nip); in altivec_assist_exception()
2099 die("Kernel VMX/Altivec assist exception", regs, SIGILL); in altivec_assist_exception()
2104 PPC_WARN_EMULATED(altivec, regs); in altivec_assist_exception()
2105 err = emulate_altivec(regs); in altivec_assist_exception()
2107 regs->nip += 4; /* skip emulated instruction */ in altivec_assist_exception()
2108 emulate_single_step(regs); in altivec_assist_exception()
2114 _exception(SIGSEGV, regs, SEGV_ACCERR, regs->nip); in altivec_assist_exception()
2119 "in %s at %lx\n", current->comm, regs->nip); in altivec_assist_exception()
2126 void CacheLockingException(struct pt_regs *regs, unsigned long address, in CacheLockingException() argument
2134 _exception(SIGILL, regs, ILL_PRVOPC, regs->nip); in CacheLockingException()
2140 void SPEFloatingPointException(struct pt_regs *regs) in SPEFloatingPointException() argument
2142 extern int do_spe_mathemu(struct pt_regs *regs); in SPEFloatingPointException()
2149 if (!arch_irq_disabled_regs(regs)) in SPEFloatingPointException()
2171 err = do_spe_mathemu(regs); in SPEFloatingPointException()
2173 regs->nip += 4; /* skip emulated instruction */ in SPEFloatingPointException()
2174 emulate_single_step(regs); in SPEFloatingPointException()
2180 _exception(SIGSEGV, regs, SEGV_ACCERR, regs->nip); in SPEFloatingPointException()
2184 "in %s at %lx\n", current->comm, regs->nip); in SPEFloatingPointException()
2186 _exception(SIGFPE, regs, code, regs->nip); in SPEFloatingPointException()
2192 void SPEFloatingPointRoundException(struct pt_regs *regs) in SPEFloatingPointRoundException() argument
2194 extern int speround_handler(struct pt_regs *regs); in SPEFloatingPointRoundException()
2198 if (!arch_irq_disabled_regs(regs)) in SPEFloatingPointRoundException()
2202 if (regs->msr & MSR_SPE) in SPEFloatingPointRoundException()
2206 regs->nip -= 4; in SPEFloatingPointRoundException()
2207 err = speround_handler(regs); in SPEFloatingPointRoundException()
2209 regs->nip += 4; /* skip emulated instruction */ in SPEFloatingPointRoundException()
2210 emulate_single_step(regs); in SPEFloatingPointRoundException()
2216 _exception(SIGSEGV, regs, SEGV_ACCERR, regs->nip); in SPEFloatingPointRoundException()
2220 "in %s at %lx\n", current->comm, regs->nip); in SPEFloatingPointRoundException()
2222 _exception(SIGFPE, regs, FPE_FLTUNK, regs->nip); in SPEFloatingPointRoundException()
2234 void unrecoverable_exception(struct pt_regs *regs) in unrecoverable_exception() argument
2237 regs->trap, regs->nip, regs->msr); in unrecoverable_exception()
2238 die("Unrecoverable exception", regs, SIGABRT); in unrecoverable_exception()
2247 void __attribute__ ((weak)) WatchdogHandler(struct pt_regs *regs) in WatchdogHandler() argument
2254 void WatchdogException(struct pt_regs *regs) in WatchdogException() argument
2257 WatchdogHandler(regs); in WatchdogException()
2265 void kernel_bad_stack(struct pt_regs *regs) in kernel_bad_stack() argument
2268 regs->gpr[1], regs->nip); in kernel_bad_stack()
2269 die("Bad kernel stack pointer", regs, SIGABRT); in kernel_bad_stack()