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()
513 die("Unrecoverable System Reset", regs, SIGABRT); in system_reset_exception()
534 static inline int check_io_access(struct pt_regs *regs) in check_io_access() argument
537 unsigned long msr = regs->msr; in check_io_access()
539 unsigned int *nip = (unsigned int *)regs->nip; in check_io_access()
542 && (entry = search_exception_tables(regs->nip)) != NULL) { in check_io_access()
562 regs->gpr[rb] - _IO_BASE, nip); in check_io_access()
563 regs->msr |= MSR_RI; in check_io_access()
564 regs->nip = extable_fixup(entry); in check_io_access()
575 #define get_reason(regs) ((regs)->dsisr) argument
584 #define single_stepping(regs) (current->thread.debug.dbcr0 & DBCR0_IC) argument
585 #define clear_single_step(regs) (current->thread.debug.dbcr0 &= ~DBCR0_IC) argument
586 #define clear_br_trace(regs) do {} while(0) argument
590 #define get_reason(regs) ((regs)->msr) argument
599 #define single_stepping(regs) ((regs)->msr & MSR_SE) argument
600 #define clear_single_step(regs) ((regs)->msr &= ~MSR_SE) argument
601 #define clear_br_trace(regs) ((regs)->msr &= ~MSR_BE) argument
607 int machine_check_e500mc(struct pt_regs *regs) in machine_check_e500mc() argument
615 recoverable = fsl_rio_mcheck_exception(regs); in machine_check_e500mc()
714 int machine_check_e500(struct pt_regs *regs) in machine_check_e500() argument
719 if (fsl_rio_mcheck_exception(regs)) in machine_check_e500()
721 if (fsl_pci_mcheck_exception(regs)) in machine_check_e500()
756 int machine_check_generic(struct pt_regs *regs) in machine_check_generic() argument
761 int machine_check_e200(struct pt_regs *regs) in machine_check_e200() argument
786 int machine_check_generic(struct pt_regs *regs) in machine_check_generic() argument
788 unsigned long reason = regs->msr; in machine_check_generic()
822 void machine_check_exception(struct pt_regs *regs) in machine_check_exception() argument
851 recover = ppc_md.machine_check_exception(regs); in machine_check_exception()
853 recover = cur_cpu_spec->machine_check(regs); in machine_check_exception()
858 if (debugger_fault_handler(regs)) in machine_check_exception()
861 if (check_io_access(regs)) in machine_check_exception()
866 die("Machine check", regs, SIGBUS); in machine_check_exception()
869 if (!(regs->msr & MSR_RI)) in machine_check_exception()
870 die("Unrecoverable Machine check", regs, SIGBUS); in machine_check_exception()
878 void SMIException(struct pt_regs *regs) in SMIException() argument
880 die("System Management Interrupt", regs, SIGABRT); in SMIException()
884 static void p9_hmi_special_emu(struct pt_regs *regs) in p9_hmi_special_emu() argument
892 if (__get_user_inatomic(instr, (unsigned int __user *)regs->nip)) in p9_hmi_special_emu()
905 regs->nip, instr); in p9_hmi_special_emu()
910 msr = regs->msr; /* Grab msr before we flush the bits */ in p9_hmi_special_emu()
930 ea = regs->gpr[rb] + (ra ? regs->gpr[ra] : 0); in p9_hmi_special_emu()
940 regs->nip, instr, (unsigned long)addr); in p9_hmi_special_emu()
955 regs->nip, instr, (unsigned long)addr); in p9_hmi_special_emu()
961 smp_processor_id(), current->comm, current->pid, regs->nip, in p9_hmi_special_emu()
981 regs->nip, instr, msr); in p9_hmi_special_emu()
988 PPC_WARN_EMULATED(lxvw4x, regs); in p9_hmi_special_emu()
991 PPC_WARN_EMULATED(lxvh8x, regs); in p9_hmi_special_emu()
994 PPC_WARN_EMULATED(lxvd2x, regs); in p9_hmi_special_emu()
997 PPC_WARN_EMULATED(lxvb16x, regs); in p9_hmi_special_emu()
1060 regs->nip += 4; in p9_hmi_special_emu()
1064 void handle_hmi_exception(struct pt_regs *regs) in handle_hmi_exception() argument
1068 old_regs = set_irq_regs(regs); in handle_hmi_exception()
1081 p9_hmi_special_emu(regs); in handle_hmi_exception()
1087 ppc_md.handle_hmi_exception(regs); in handle_hmi_exception()
1093 void unknown_exception(struct pt_regs *regs) in unknown_exception() argument
1098 regs->nip, regs->msr, regs->trap); in unknown_exception()
1100 _exception(SIGTRAP, regs, TRAP_UNK, 0); in unknown_exception()
1105 void instruction_breakpoint_exception(struct pt_regs *regs) in instruction_breakpoint_exception() argument
1109 if (notify_die(DIE_IABR_MATCH, "iabr_match", regs, 5, in instruction_breakpoint_exception()
1112 if (debugger_iabr_match(regs)) in instruction_breakpoint_exception()
1114 _exception(SIGTRAP, regs, TRAP_BRKPT, regs->nip); in instruction_breakpoint_exception()
1120 void RunModeException(struct pt_regs *regs) in RunModeException() argument
1122 _exception(SIGTRAP, regs, TRAP_UNK, 0); in RunModeException()
1125 void single_step_exception(struct pt_regs *regs) in single_step_exception() argument
1129 clear_single_step(regs); in single_step_exception()
1130 clear_br_trace(regs); in single_step_exception()
1132 if (kprobe_post_handler(regs)) in single_step_exception()
1135 if (notify_die(DIE_SSTEP, "single_step", regs, 5, in single_step_exception()
1138 if (debugger_sstep(regs)) in single_step_exception()
1141 _exception(SIGTRAP, regs, TRAP_TRACE, regs->nip); in single_step_exception()
1154 static void emulate_single_step(struct pt_regs *regs) in emulate_single_step() argument
1156 if (single_stepping(regs)) in emulate_single_step()
1157 single_step_exception(regs); in emulate_single_step()
1187 static void parse_fpe(struct pt_regs *regs) in parse_fpe() argument
1195 _exception(SIGFPE, regs, code, regs->nip); in parse_fpe()
1209 static int emulate_string_inst(struct pt_regs *regs, u32 instword) in emulate_string_inst() argument
1223 EA = (rA == 0) ? 0 : regs->gpr[rA]; in emulate_string_inst()
1229 num_bytes = regs->xer & 0x7f; in emulate_string_inst()
1245 if ((regs->msr & MSR_64BIT) == 0) in emulate_string_inst()
1256 regs->gpr[rT] = 0; in emulate_string_inst()
1257 regs->gpr[rT] |= val << shift; in emulate_string_inst()
1261 val = regs->gpr[rT] >> shift; in emulate_string_inst()
1281 static int emulate_popcntb_inst(struct pt_regs *regs, u32 instword) in emulate_popcntb_inst() argument
1289 tmp = regs->gpr[rs]; in emulate_popcntb_inst()
1293 regs->gpr[ra] = tmp; in emulate_popcntb_inst()
1298 static int emulate_isel(struct pt_regs *regs, u32 instword) in emulate_isel() argument
1307 tmp = (rA == 0) ? 0 : regs->gpr[rA]; in emulate_isel()
1308 bit = (regs->ccr >> (31 - BC)) & 0x1; in emulate_isel()
1310 regs->gpr[rT] = bit ? tmp : regs->gpr[rB]; in emulate_isel()
1316 static inline bool tm_abort_check(struct pt_regs *regs, int cause) in tm_abort_check() argument
1323 if (MSR_TM_TRANSACTIONAL(regs->msr)) { in tm_abort_check()
1331 static inline bool tm_abort_check(struct pt_regs *regs, int reason) in tm_abort_check() argument
1337 static int emulate_instruction(struct pt_regs *regs) in emulate_instruction() argument
1342 if (!user_mode(regs)) in emulate_instruction()
1344 CHECK_FULL_REGS(regs); in emulate_instruction()
1346 if (get_user(instword, (u32 __user *)(regs->nip))) in emulate_instruction()
1351 PPC_WARN_EMULATED(mfpvr, regs); in emulate_instruction()
1353 regs->gpr[rd] = mfspr(SPRN_PVR); in emulate_instruction()
1359 PPC_WARN_EMULATED(dcba, regs); in emulate_instruction()
1368 PPC_WARN_EMULATED(mcrxr, regs); in emulate_instruction()
1369 regs->ccr = (regs->ccr & ~msk) | ((regs->xer >> shift) & msk); in emulate_instruction()
1370 regs->xer &= ~0xf0000000UL; in emulate_instruction()
1376 if (tm_abort_check(regs, in emulate_instruction()
1379 PPC_WARN_EMULATED(string, regs); in emulate_instruction()
1380 return emulate_string_inst(regs, instword); in emulate_instruction()
1385 PPC_WARN_EMULATED(popcntb, regs); in emulate_instruction()
1386 return emulate_popcntb_inst(regs, instword); in emulate_instruction()
1391 PPC_WARN_EMULATED(isel, regs); in emulate_instruction()
1392 return emulate_isel(regs, instword); in emulate_instruction()
1397 PPC_WARN_EMULATED(sync, regs); in emulate_instruction()
1409 PPC_WARN_EMULATED(mfdscr, regs); in emulate_instruction()
1411 regs->gpr[rd] = mfspr(SPRN_DSCR); in emulate_instruction()
1420 PPC_WARN_EMULATED(mtdscr, regs); in emulate_instruction()
1422 current->thread.dscr = regs->gpr[rd]; in emulate_instruction()
1438 static int emulate_math(struct pt_regs *regs) in emulate_math() argument
1441 extern int do_mathemu(struct pt_regs *regs); in emulate_math()
1443 ret = do_mathemu(regs); in emulate_math()
1445 PPC_WARN_EMULATED(math, regs); in emulate_math()
1449 emulate_single_step(regs); in emulate_math()
1454 _exception(SIGFPE, regs, code, regs->nip); in emulate_math()
1458 _exception(SIGSEGV, regs, SEGV_MAPERR, regs->nip); in emulate_math()
1465 static inline int emulate_math(struct pt_regs *regs) { return -1; } in emulate_math() argument
1468 void program_check_exception(struct pt_regs *regs) in program_check_exception() argument
1471 unsigned int reason = get_reason(regs); in program_check_exception()
1478 parse_fpe(regs); in program_check_exception()
1485 if (debugger_bpt(regs)) in program_check_exception()
1488 if (kprobe_handler(regs)) in program_check_exception()
1492 if (notify_die(DIE_BPT, "breakpoint", regs, 5, 5, SIGTRAP) in program_check_exception()
1496 bugaddr = regs->nip; in program_check_exception()
1500 if (!is_kernel_addr(bugaddr) && !(regs->msr & MSR_IR)) in program_check_exception()
1503 if (!(regs->msr & MSR_PR) && /* not user-mode */ in program_check_exception()
1504 report_bug(bugaddr, regs) == BUG_TRAP_TYPE_WARN) { in program_check_exception()
1505 regs->nip += 4; in program_check_exception()
1508 _exception(SIGTRAP, regs, TRAP_BRKPT, regs->nip); in program_check_exception()
1528 if (user_mode(regs)) { in program_check_exception()
1529 _exception(SIGILL, regs, ILL_ILLOPN, regs->nip); in program_check_exception()
1534 regs->nip, regs->msr, get_paca()->tm_scratch); in program_check_exception()
1535 die("Unrecoverable exception", regs, SIGABRT); in program_check_exception()
1547 if (!user_mode(regs)) in program_check_exception()
1551 if (!arch_irq_disabled_regs(regs)) in program_check_exception()
1562 if (!emulate_math(regs)) in program_check_exception()
1567 switch (emulate_instruction(regs)) { in program_check_exception()
1569 regs->nip += 4; in program_check_exception()
1570 emulate_single_step(regs); in program_check_exception()
1573 _exception(SIGSEGV, regs, SEGV_MAPERR, regs->nip); in program_check_exception()
1580 _exception(SIGILL, regs, ILL_PRVOPC, regs->nip); in program_check_exception()
1582 _exception(SIGILL, regs, ILL_ILLOPC, regs->nip); in program_check_exception()
1593 void emulation_assist_interrupt(struct pt_regs *regs) in emulation_assist_interrupt() argument
1595 regs->msr |= REASON_ILLEGAL; in emulation_assist_interrupt()
1596 program_check_exception(regs); in emulation_assist_interrupt()
1600 void alignment_exception(struct pt_regs *regs) in alignment_exception() argument
1607 if (!arch_irq_disabled_regs(regs)) in alignment_exception()
1610 reason = get_reason(regs); in alignment_exception()
1618 if (tm_abort_check(regs, TM_CAUSE_ALIGNMENT | TM_CAUSE_PERSISTENT)) in alignment_exception()
1623 fixed = fix_alignment(regs); in alignment_exception()
1627 regs->nip += inst_length(reason); in alignment_exception()
1628 emulate_single_step(regs); in alignment_exception()
1641 if (user_mode(regs)) in alignment_exception()
1642 _exception(sig, regs, code, regs->dar); in alignment_exception()
1644 bad_page_fault(regs, regs->dar, sig); in alignment_exception()
1650 void StackOverflow(struct pt_regs *regs) in StackOverflow() argument
1653 current->comm, task_pid_nr(current), regs->gpr[1]); in StackOverflow()
1654 debugger(regs); in StackOverflow()
1655 show_regs(regs); in StackOverflow()
1659 void stack_overflow_exception(struct pt_regs *regs) in stack_overflow_exception() argument
1663 die("Kernel stack overflow", regs, SIGSEGV); in stack_overflow_exception()
1668 void kernel_fp_unavailable_exception(struct pt_regs *regs) in kernel_fp_unavailable_exception() argument
1673 "%lx at %lx\n", regs->trap, regs->nip); in kernel_fp_unavailable_exception()
1674 die("Unrecoverable FP Unavailable Exception", regs, SIGABRT); in kernel_fp_unavailable_exception()
1679 void altivec_unavailable_exception(struct pt_regs *regs) in altivec_unavailable_exception() argument
1683 if (user_mode(regs)) { in altivec_unavailable_exception()
1686 _exception(SIGILL, regs, ILL_ILLOPC, regs->nip); in altivec_unavailable_exception()
1691 "%lx at %lx\n", regs->trap, regs->nip); in altivec_unavailable_exception()
1692 die("Unrecoverable VMX/Altivec Unavailable Exception", regs, SIGABRT); in altivec_unavailable_exception()
1698 void vsx_unavailable_exception(struct pt_regs *regs) in vsx_unavailable_exception() argument
1700 if (user_mode(regs)) { in vsx_unavailable_exception()
1703 _exception(SIGILL, regs, ILL_ILLOPC, regs->nip); in vsx_unavailable_exception()
1708 "%lx at %lx\n", regs->trap, regs->nip); in vsx_unavailable_exception()
1709 die("Unrecoverable VSX Unavailable Exception", regs, SIGABRT); in vsx_unavailable_exception()
1713 static void tm_unavailable(struct pt_regs *regs) in tm_unavailable() argument
1716 if (user_mode(regs)) { in tm_unavailable()
1718 regs->msr |= MSR_TM; in tm_unavailable()
1725 "%lx at %lx\n", regs->trap, regs->nip); in tm_unavailable()
1726 die("Unrecoverable TM Unavailable Exception", regs, SIGABRT); in tm_unavailable()
1729 void facility_unavailable_exception(struct pt_regs *regs) in facility_unavailable_exception() argument
1750 hv = (TRAP(regs) == 0xf80); in facility_unavailable_exception()
1763 if (!user_mode(regs)) { in facility_unavailable_exception()
1765 facility, status, regs->nip); in facility_unavailable_exception()
1766 die("Unexpected facility unavailable exception", regs, SIGABRT); in facility_unavailable_exception()
1770 if (!arch_irq_disabled_regs(regs)) in facility_unavailable_exception()
1790 if (get_user(instword, (u32 __user *)(regs->nip))) { in facility_unavailable_exception()
1799 current->thread.dscr = regs->gpr[rd]; in facility_unavailable_exception()
1808 if (emulate_instruction(regs)) { in facility_unavailable_exception()
1812 regs->nip += 4; in facility_unavailable_exception()
1813 emulate_single_step(regs); in facility_unavailable_exception()
1835 tm_unavailable(regs); in facility_unavailable_exception()
1840 hv ? "Hypervisor " : "", facility, status, regs->nip, regs->msr); in facility_unavailable_exception()
1843 _exception(SIGILL, regs, ILL_ILLOPC, regs->nip); in facility_unavailable_exception()
1849 void fp_unavailable_tm(struct pt_regs *regs) in fp_unavailable_tm() argument
1854 regs->nip, regs->msr); in fp_unavailable_tm()
1882 void altivec_unavailable_tm(struct pt_regs *regs) in altivec_unavailable_tm() argument
1890 regs->nip, regs->msr); in altivec_unavailable_tm()
1897 void vsx_unavailable_tm(struct pt_regs *regs) in vsx_unavailable_tm() argument
1908 regs->nip, regs->msr); in vsx_unavailable_tm()
1922 void performance_monitor_exception(struct pt_regs *regs) in performance_monitor_exception() argument
1926 perf_irq(regs); in performance_monitor_exception()
1930 static void handle_debug(struct pt_regs *regs, unsigned long debug_status) in handle_debug() argument
1942 do_send_trap(regs, mfspr(SPRN_DAC1), debug_status, in handle_debug()
1947 do_send_trap(regs, mfspr(SPRN_DAC2), debug_status, in handle_debug()
1953 do_send_trap(regs, mfspr(SPRN_IAC1), debug_status, in handle_debug()
1958 do_send_trap(regs, mfspr(SPRN_IAC2), debug_status, in handle_debug()
1964 do_send_trap(regs, mfspr(SPRN_IAC3), debug_status, in handle_debug()
1969 do_send_trap(regs, mfspr(SPRN_IAC4), debug_status, in handle_debug()
1980 regs->msr |= MSR_DE; in handle_debug()
1989 void DebugException(struct pt_regs *regs, unsigned long debug_status) in DebugException() argument
1999 regs->msr &= ~MSR_DE; in DebugException()
2007 if (user_mode(regs)) { in DebugException()
2010 regs->msr |= MSR_DE; in DebugException()
2014 if (kprobe_post_handler(regs)) in DebugException()
2017 if (notify_die(DIE_SSTEP, "block_step", regs, 5, in DebugException()
2021 if (debugger_sstep(regs)) in DebugException()
2024 regs->msr &= ~MSR_DE; in DebugException()
2031 if (kprobe_post_handler(regs)) in DebugException()
2034 if (notify_die(DIE_SSTEP, "single_step", regs, 5, in DebugException()
2039 if (debugger_sstep(regs)) in DebugException()
2042 if (user_mode(regs)) { in DebugException()
2046 regs->msr |= MSR_DE; in DebugException()
2052 _exception(SIGTRAP, regs, TRAP_TRACE, regs->nip); in DebugException()
2054 handle_debug(regs, debug_status); in DebugException()
2060 void altivec_assist_exception(struct pt_regs *regs) in altivec_assist_exception() argument
2064 if (!user_mode(regs)) { in altivec_assist_exception()
2066 " at %lx\n", regs->nip); in altivec_assist_exception()
2067 die("Kernel VMX/Altivec assist exception", regs, SIGILL); in altivec_assist_exception()
2072 PPC_WARN_EMULATED(altivec, regs); in altivec_assist_exception()
2073 err = emulate_altivec(regs); in altivec_assist_exception()
2075 regs->nip += 4; /* skip emulated instruction */ in altivec_assist_exception()
2076 emulate_single_step(regs); in altivec_assist_exception()
2082 _exception(SIGSEGV, regs, SEGV_ACCERR, regs->nip); in altivec_assist_exception()
2087 "in %s at %lx\n", current->comm, regs->nip); in altivec_assist_exception()
2094 void CacheLockingException(struct pt_regs *regs, unsigned long address, in CacheLockingException() argument
2102 _exception(SIGILL, regs, ILL_PRVOPC, regs->nip); in CacheLockingException()
2108 void SPEFloatingPointException(struct pt_regs *regs) in SPEFloatingPointException() argument
2110 extern int do_spe_mathemu(struct pt_regs *regs); in SPEFloatingPointException()
2117 if (!arch_irq_disabled_regs(regs)) in SPEFloatingPointException()
2139 err = do_spe_mathemu(regs); in SPEFloatingPointException()
2141 regs->nip += 4; /* skip emulated instruction */ in SPEFloatingPointException()
2142 emulate_single_step(regs); in SPEFloatingPointException()
2148 _exception(SIGSEGV, regs, SEGV_ACCERR, regs->nip); in SPEFloatingPointException()
2152 "in %s at %lx\n", current->comm, regs->nip); in SPEFloatingPointException()
2154 _exception(SIGFPE, regs, code, regs->nip); in SPEFloatingPointException()
2160 void SPEFloatingPointRoundException(struct pt_regs *regs) in SPEFloatingPointRoundException() argument
2162 extern int speround_handler(struct pt_regs *regs); in SPEFloatingPointRoundException()
2166 if (!arch_irq_disabled_regs(regs)) in SPEFloatingPointRoundException()
2170 if (regs->msr & MSR_SPE) in SPEFloatingPointRoundException()
2174 regs->nip -= 4; in SPEFloatingPointRoundException()
2175 err = speround_handler(regs); in SPEFloatingPointRoundException()
2177 regs->nip += 4; /* skip emulated instruction */ in SPEFloatingPointRoundException()
2178 emulate_single_step(regs); in SPEFloatingPointRoundException()
2184 _exception(SIGSEGV, regs, SEGV_ACCERR, regs->nip); in SPEFloatingPointRoundException()
2188 "in %s at %lx\n", current->comm, regs->nip); in SPEFloatingPointRoundException()
2190 _exception(SIGFPE, regs, FPE_FLTUNK, regs->nip); in SPEFloatingPointRoundException()
2202 void unrecoverable_exception(struct pt_regs *regs) in unrecoverable_exception() argument
2205 regs->trap, regs->nip, regs->msr); in unrecoverable_exception()
2206 die("Unrecoverable exception", regs, SIGABRT); in unrecoverable_exception()
2215 void __attribute__ ((weak)) WatchdogHandler(struct pt_regs *regs) in WatchdogHandler() argument
2222 void WatchdogException(struct pt_regs *regs) in WatchdogException() argument
2225 WatchdogHandler(regs); in WatchdogException()
2233 void kernel_bad_stack(struct pt_regs *regs) in kernel_bad_stack() argument
2236 regs->gpr[1], regs->nip); in kernel_bad_stack()
2237 die("Bad kernel stack pointer", regs, SIGABRT); in kernel_bad_stack()