Lines Matching refs:regs

73 int (*__debugger)(struct pt_regs *regs) __read_mostly;
74 int (*__debugger_ipi)(struct pt_regs *regs) __read_mostly;
75 int (*__debugger_bpt)(struct pt_regs *regs) __read_mostly;
76 int (*__debugger_sstep)(struct pt_regs *regs) __read_mostly;
77 int (*__debugger_iabr_match)(struct pt_regs *regs) __read_mostly;
78 int (*__debugger_break_match)(struct pt_regs *regs) __read_mostly;
79 int (*__debugger_fault_handler)(struct pt_regs *regs) __read_mostly;
181 static unsigned long oops_begin(struct pt_regs *regs) in oops_begin() argument
207 static void oops_end(unsigned long flags, struct pt_regs *regs, in oops_end() argument
225 if (TRAP(regs) == 0x100) in oops_end()
228 crash_fadump(regs, "die oops"); in oops_end()
231 crash_kexec(regs); in oops_end()
253 static int __die(const char *str, struct pt_regs *regs, long err) in __die() argument
269 if (notify_die(DIE_OOPS, str, regs, err, 255, SIGSEGV) == NOTIFY_STOP) in __die()
273 show_regs(regs); in __die()
279 void die(const char *str, struct pt_regs *regs, long err) in die() argument
286 if (TRAP(regs) != 0x100) { in die()
287 if (debugger(regs)) in die()
291 flags = oops_begin(regs); in die()
292 if (__die(str, regs, err)) in die()
294 oops_end(flags, regs, err); in die()
298 void user_single_step_report(struct pt_regs *regs) in user_single_step_report() argument
300 force_sig_fault(SIGTRAP, TRAP_TRACE, (void __user *)regs->nip); in user_single_step_report()
303 static void show_signal_msg(int signr, struct pt_regs *regs, int code, in show_signal_msg() argument
320 addr, regs->nip, regs->link, code); in show_signal_msg()
322 print_vma_addr(KERN_CONT " in ", regs->nip); in show_signal_msg()
326 show_user_instructions(regs); in show_signal_msg()
329 static bool exception_common(int signr, struct pt_regs *regs, int code, in exception_common() argument
332 if (!user_mode(regs)) { in exception_common()
333 die("Exception in kernel mode", regs, signr); in exception_common()
337 show_signal_msg(signr, regs, code, addr); in exception_common()
339 if (arch_irqs_disabled() && !arch_irq_disabled_regs(regs)) in exception_common()
353 void _exception_pkey(struct pt_regs *regs, unsigned long addr, int key) in _exception_pkey() argument
355 if (!exception_common(SIGSEGV, regs, SEGV_PKUERR, addr)) in _exception_pkey()
361 void _exception(int signr, struct pt_regs *regs, int code, unsigned long addr) in _exception() argument
363 if (!exception_common(signr, regs, code, addr)) in _exception()
390 void hv_nmi_check_nonrecoverable(struct pt_regs *regs) in hv_nmi_check_nonrecoverable() argument
394 unsigned long nip = regs->nip; in hv_nmi_check_nonrecoverable()
396 if (!(regs->msr & MSR_RI)) in hv_nmi_check_nonrecoverable()
398 if (!(regs->msr & MSR_HV)) in hv_nmi_check_nonrecoverable()
400 if (regs->msr & MSR_PR) in hv_nmi_check_nonrecoverable()
430 regs->msr &= ~MSR_RI; in hv_nmi_check_nonrecoverable()
434 void system_reset_exception(struct pt_regs *regs) in system_reset_exception() argument
462 hv_nmi_check_nonrecoverable(regs); in system_reset_exception()
468 if (ppc_md.system_reset_exception(regs)) in system_reset_exception()
472 if (debugger(regs)) in system_reset_exception()
481 crash_fadump(regs, "System Reset"); in system_reset_exception()
483 crash_kexec(regs); in system_reset_exception()
490 crash_kexec_secondary(regs); in system_reset_exception()
496 die("System Reset", regs, SIGABRT); in system_reset_exception()
500 nmi_panic(regs, "System Reset"); in system_reset_exception()
506 nmi_panic(regs, "Unrecoverable nested System Reset"); in system_reset_exception()
509 if (!(regs->msr & MSR_RI)) in system_reset_exception()
510 nmi_panic(regs, "Unrecoverable System Reset"); in system_reset_exception()
533 static inline int check_io_access(struct pt_regs *regs) in check_io_access() argument
536 unsigned long msr = regs->msr; in check_io_access()
538 unsigned int *nip = (unsigned int *)regs->nip; in check_io_access()
541 && (entry = search_exception_tables(regs->nip)) != NULL) { in check_io_access()
561 regs->gpr[rb] - _IO_BASE, nip); in check_io_access()
562 regs->msr |= MSR_RI; in check_io_access()
563 regs->nip = extable_fixup(entry); in check_io_access()
574 #define get_reason(regs) ((regs)->dsisr) argument
581 #define single_stepping(regs) (current->thread.debug.dbcr0 & DBCR0_IC) argument
582 #define clear_single_step(regs) (current->thread.debug.dbcr0 &= ~DBCR0_IC) argument
583 #define clear_br_trace(regs) do {} while(0) argument
587 #define get_reason(regs) ((regs)->msr) argument
594 #define single_stepping(regs) ((regs)->msr & MSR_SE) argument
595 #define clear_single_step(regs) ((regs)->msr &= ~MSR_SE) argument
596 #define clear_br_trace(regs) ((regs)->msr &= ~MSR_BE) argument
600 int machine_check_e500mc(struct pt_regs *regs) in machine_check_e500mc() argument
608 recoverable = fsl_rio_mcheck_exception(regs); in machine_check_e500mc()
707 int machine_check_e500(struct pt_regs *regs) in machine_check_e500() argument
712 if (fsl_rio_mcheck_exception(regs)) in machine_check_e500()
714 if (fsl_pci_mcheck_exception(regs)) in machine_check_e500()
749 int machine_check_generic(struct pt_regs *regs) in machine_check_generic() argument
754 int machine_check_e200(struct pt_regs *regs) in machine_check_e200() argument
779 int machine_check_generic(struct pt_regs *regs) in machine_check_generic() argument
781 unsigned long reason = regs->msr; in machine_check_generic()
816 void machine_check_exception(struct pt_regs *regs) in machine_check_exception() argument
834 recover = ppc_md.machine_check_exception(regs); in machine_check_exception()
836 recover = cur_cpu_spec->machine_check(regs); in machine_check_exception()
841 if (debugger_fault_handler(regs)) in machine_check_exception()
844 if (check_io_access(regs)) in machine_check_exception()
850 die("Machine check", regs, SIGBUS); in machine_check_exception()
853 if (!(regs->msr & MSR_RI)) in machine_check_exception()
854 nmi_panic(regs, "Unrecoverable Machine check"); in machine_check_exception()
863 void SMIException(struct pt_regs *regs) in SMIException() argument
865 die("System Management Interrupt", regs, SIGABRT); in SMIException()
869 static void p9_hmi_special_emu(struct pt_regs *regs) in p9_hmi_special_emu() argument
877 if (__get_user_inatomic(instr, (unsigned int __user *)regs->nip)) in p9_hmi_special_emu()
890 regs->nip, instr); in p9_hmi_special_emu()
895 msr = regs->msr; /* Grab msr before we flush the bits */ in p9_hmi_special_emu()
915 ea = regs->gpr[rb] + (ra ? regs->gpr[ra] : 0); in p9_hmi_special_emu()
925 regs->nip, instr, (unsigned long)addr); in p9_hmi_special_emu()
940 regs->nip, instr, (unsigned long)addr); in p9_hmi_special_emu()
946 smp_processor_id(), current->comm, current->pid, regs->nip, in p9_hmi_special_emu()
966 regs->nip, instr, msr); in p9_hmi_special_emu()
973 PPC_WARN_EMULATED(lxvw4x, regs); in p9_hmi_special_emu()
976 PPC_WARN_EMULATED(lxvh8x, regs); in p9_hmi_special_emu()
979 PPC_WARN_EMULATED(lxvd2x, regs); in p9_hmi_special_emu()
982 PPC_WARN_EMULATED(lxvb16x, regs); in p9_hmi_special_emu()
1045 regs->nip += 4; in p9_hmi_special_emu()
1049 void handle_hmi_exception(struct pt_regs *regs) in handle_hmi_exception() argument
1053 old_regs = set_irq_regs(regs); in handle_hmi_exception()
1066 p9_hmi_special_emu(regs); in handle_hmi_exception()
1072 ppc_md.handle_hmi_exception(regs); in handle_hmi_exception()
1078 void unknown_exception(struct pt_regs *regs) in unknown_exception() argument
1083 regs->nip, regs->msr, regs->trap); in unknown_exception()
1085 _exception(SIGTRAP, regs, TRAP_UNK, 0); in unknown_exception()
1090 void instruction_breakpoint_exception(struct pt_regs *regs) in instruction_breakpoint_exception() argument
1094 if (notify_die(DIE_IABR_MATCH, "iabr_match", regs, 5, in instruction_breakpoint_exception()
1097 if (debugger_iabr_match(regs)) in instruction_breakpoint_exception()
1099 _exception(SIGTRAP, regs, TRAP_BRKPT, regs->nip); in instruction_breakpoint_exception()
1105 void RunModeException(struct pt_regs *regs) in RunModeException() argument
1107 _exception(SIGTRAP, regs, TRAP_UNK, 0); in RunModeException()
1110 void single_step_exception(struct pt_regs *regs) in single_step_exception() argument
1114 clear_single_step(regs); in single_step_exception()
1115 clear_br_trace(regs); in single_step_exception()
1117 if (kprobe_post_handler(regs)) in single_step_exception()
1120 if (notify_die(DIE_SSTEP, "single_step", regs, 5, in single_step_exception()
1123 if (debugger_sstep(regs)) in single_step_exception()
1126 _exception(SIGTRAP, regs, TRAP_TRACE, regs->nip); in single_step_exception()
1139 static void emulate_single_step(struct pt_regs *regs) in emulate_single_step() argument
1141 if (single_stepping(regs)) in emulate_single_step()
1142 single_step_exception(regs); in emulate_single_step()
1172 static void parse_fpe(struct pt_regs *regs) in parse_fpe() argument
1180 _exception(SIGFPE, regs, code, regs->nip); in parse_fpe()
1194 static int emulate_string_inst(struct pt_regs *regs, u32 instword) in emulate_string_inst() argument
1208 EA = (rA == 0) ? 0 : regs->gpr[rA]; in emulate_string_inst()
1214 num_bytes = regs->xer & 0x7f; in emulate_string_inst()
1230 if ((regs->msr & MSR_64BIT) == 0) in emulate_string_inst()
1241 regs->gpr[rT] = 0; in emulate_string_inst()
1242 regs->gpr[rT] |= val << shift; in emulate_string_inst()
1246 val = regs->gpr[rT] >> shift; in emulate_string_inst()
1266 static int emulate_popcntb_inst(struct pt_regs *regs, u32 instword) in emulate_popcntb_inst() argument
1274 tmp = regs->gpr[rs]; in emulate_popcntb_inst()
1278 regs->gpr[ra] = tmp; in emulate_popcntb_inst()
1283 static int emulate_isel(struct pt_regs *regs, u32 instword) in emulate_isel() argument
1292 tmp = (rA == 0) ? 0 : regs->gpr[rA]; in emulate_isel()
1293 bit = (regs->ccr >> (31 - BC)) & 0x1; in emulate_isel()
1295 regs->gpr[rT] = bit ? tmp : regs->gpr[rB]; in emulate_isel()
1301 static inline bool tm_abort_check(struct pt_regs *regs, int cause) in tm_abort_check() argument
1308 if (MSR_TM_TRANSACTIONAL(regs->msr)) { in tm_abort_check()
1316 static inline bool tm_abort_check(struct pt_regs *regs, int reason) in tm_abort_check() argument
1322 static int emulate_instruction(struct pt_regs *regs) in emulate_instruction() argument
1327 if (!user_mode(regs)) in emulate_instruction()
1329 CHECK_FULL_REGS(regs); in emulate_instruction()
1331 if (get_user(instword, (u32 __user *)(regs->nip))) in emulate_instruction()
1336 PPC_WARN_EMULATED(mfpvr, regs); in emulate_instruction()
1338 regs->gpr[rd] = mfspr(SPRN_PVR); in emulate_instruction()
1344 PPC_WARN_EMULATED(dcba, regs); in emulate_instruction()
1353 PPC_WARN_EMULATED(mcrxr, regs); in emulate_instruction()
1354 regs->ccr = (regs->ccr & ~msk) | ((regs->xer >> shift) & msk); in emulate_instruction()
1355 regs->xer &= ~0xf0000000UL; in emulate_instruction()
1361 if (tm_abort_check(regs, in emulate_instruction()
1364 PPC_WARN_EMULATED(string, regs); in emulate_instruction()
1365 return emulate_string_inst(regs, instword); in emulate_instruction()
1370 PPC_WARN_EMULATED(popcntb, regs); in emulate_instruction()
1371 return emulate_popcntb_inst(regs, instword); in emulate_instruction()
1376 PPC_WARN_EMULATED(isel, regs); in emulate_instruction()
1377 return emulate_isel(regs, instword); in emulate_instruction()
1382 PPC_WARN_EMULATED(sync, regs); in emulate_instruction()
1394 PPC_WARN_EMULATED(mfdscr, regs); in emulate_instruction()
1396 regs->gpr[rd] = mfspr(SPRN_DSCR); in emulate_instruction()
1405 PPC_WARN_EMULATED(mtdscr, regs); in emulate_instruction()
1407 current->thread.dscr = regs->gpr[rd]; in emulate_instruction()
1423 static int emulate_math(struct pt_regs *regs) in emulate_math() argument
1426 extern int do_mathemu(struct pt_regs *regs); in emulate_math()
1428 ret = do_mathemu(regs); in emulate_math()
1430 PPC_WARN_EMULATED(math, regs); in emulate_math()
1434 emulate_single_step(regs); in emulate_math()
1439 _exception(SIGFPE, regs, code, regs->nip); in emulate_math()
1443 _exception(SIGSEGV, regs, SEGV_MAPERR, regs->nip); in emulate_math()
1450 static inline int emulate_math(struct pt_regs *regs) { return -1; } in emulate_math() argument
1453 void program_check_exception(struct pt_regs *regs) in program_check_exception() argument
1456 unsigned int reason = get_reason(regs); in program_check_exception()
1463 parse_fpe(regs); in program_check_exception()
1470 if (debugger_bpt(regs)) in program_check_exception()
1473 if (kprobe_handler(regs)) in program_check_exception()
1477 if (notify_die(DIE_BPT, "breakpoint", regs, 5, 5, SIGTRAP) in program_check_exception()
1481 bugaddr = regs->nip; in program_check_exception()
1485 if (!is_kernel_addr(bugaddr) && !(regs->msr & MSR_IR)) in program_check_exception()
1488 if (!(regs->msr & MSR_PR) && /* not user-mode */ in program_check_exception()
1489 report_bug(bugaddr, regs) == BUG_TRAP_TYPE_WARN) { in program_check_exception()
1490 regs->nip += 4; in program_check_exception()
1493 _exception(SIGTRAP, regs, TRAP_BRKPT, regs->nip); in program_check_exception()
1513 if (user_mode(regs)) { in program_check_exception()
1514 _exception(SIGILL, regs, ILL_ILLOPN, regs->nip); in program_check_exception()
1519 regs->nip, regs->msr, get_paca()->tm_scratch); in program_check_exception()
1520 die("Unrecoverable exception", regs, SIGABRT); in program_check_exception()
1532 if (!user_mode(regs)) in program_check_exception()
1536 if (!arch_irq_disabled_regs(regs)) in program_check_exception()
1547 if (!emulate_math(regs)) in program_check_exception()
1552 switch (emulate_instruction(regs)) { in program_check_exception()
1554 regs->nip += 4; in program_check_exception()
1555 emulate_single_step(regs); in program_check_exception()
1558 _exception(SIGSEGV, regs, SEGV_MAPERR, regs->nip); in program_check_exception()
1565 _exception(SIGILL, regs, ILL_PRVOPC, regs->nip); in program_check_exception()
1567 _exception(SIGILL, regs, ILL_ILLOPC, regs->nip); in program_check_exception()
1578 void emulation_assist_interrupt(struct pt_regs *regs) in emulation_assist_interrupt() argument
1580 regs->msr |= REASON_ILLEGAL; in emulation_assist_interrupt()
1581 program_check_exception(regs); in emulation_assist_interrupt()
1585 void alignment_exception(struct pt_regs *regs) in alignment_exception() argument
1591 if (!arch_irq_disabled_regs(regs)) in alignment_exception()
1594 if (tm_abort_check(regs, TM_CAUSE_ALIGNMENT | TM_CAUSE_PERSISTENT)) in alignment_exception()
1599 fixed = fix_alignment(regs); in alignment_exception()
1602 regs->nip += 4; /* skip over emulated instruction */ in alignment_exception()
1603 emulate_single_step(regs); in alignment_exception()
1615 if (user_mode(regs)) in alignment_exception()
1616 _exception(sig, regs, code, regs->dar); in alignment_exception()
1618 bad_page_fault(regs, regs->dar, sig); in alignment_exception()
1624 void StackOverflow(struct pt_regs *regs) in StackOverflow() argument
1627 current->comm, task_pid_nr(current), regs->gpr[1]); in StackOverflow()
1628 debugger(regs); in StackOverflow()
1629 show_regs(regs); in StackOverflow()
1633 void kernel_fp_unavailable_exception(struct pt_regs *regs) in kernel_fp_unavailable_exception() argument
1638 "%lx at %lx\n", regs->trap, regs->nip); in kernel_fp_unavailable_exception()
1639 die("Unrecoverable FP Unavailable Exception", regs, SIGABRT); in kernel_fp_unavailable_exception()
1644 void altivec_unavailable_exception(struct pt_regs *regs) in altivec_unavailable_exception() argument
1648 if (user_mode(regs)) { in altivec_unavailable_exception()
1651 _exception(SIGILL, regs, ILL_ILLOPC, regs->nip); in altivec_unavailable_exception()
1656 "%lx at %lx\n", regs->trap, regs->nip); in altivec_unavailable_exception()
1657 die("Unrecoverable VMX/Altivec Unavailable Exception", regs, SIGABRT); in altivec_unavailable_exception()
1663 void vsx_unavailable_exception(struct pt_regs *regs) in vsx_unavailable_exception() argument
1665 if (user_mode(regs)) { in vsx_unavailable_exception()
1668 _exception(SIGILL, regs, ILL_ILLOPC, regs->nip); in vsx_unavailable_exception()
1673 "%lx at %lx\n", regs->trap, regs->nip); in vsx_unavailable_exception()
1674 die("Unrecoverable VSX Unavailable Exception", regs, SIGABRT); in vsx_unavailable_exception()
1678 static void tm_unavailable(struct pt_regs *regs) in tm_unavailable() argument
1681 if (user_mode(regs)) { in tm_unavailable()
1683 regs->msr |= MSR_TM; in tm_unavailable()
1690 "%lx at %lx\n", regs->trap, regs->nip); in tm_unavailable()
1691 die("Unrecoverable TM Unavailable Exception", regs, SIGABRT); in tm_unavailable()
1694 void facility_unavailable_exception(struct pt_regs *regs) in facility_unavailable_exception() argument
1714 hv = (TRAP(regs) == 0xf80); in facility_unavailable_exception()
1727 if (!user_mode(regs)) { in facility_unavailable_exception()
1729 facility, status, regs->nip); in facility_unavailable_exception()
1730 die("Unexpected facility unavailable exception", regs, SIGABRT); in facility_unavailable_exception()
1734 if (!arch_irq_disabled_regs(regs)) in facility_unavailable_exception()
1754 if (get_user(instword, (u32 __user *)(regs->nip))) { in facility_unavailable_exception()
1763 current->thread.dscr = regs->gpr[rd]; in facility_unavailable_exception()
1772 if (emulate_instruction(regs)) { in facility_unavailable_exception()
1776 regs->nip += 4; in facility_unavailable_exception()
1777 emulate_single_step(regs); in facility_unavailable_exception()
1799 tm_unavailable(regs); in facility_unavailable_exception()
1804 hv ? "Hypervisor " : "", facility, status, regs->nip, regs->msr); in facility_unavailable_exception()
1807 _exception(SIGILL, regs, ILL_ILLOPC, regs->nip); in facility_unavailable_exception()
1813 void fp_unavailable_tm(struct pt_regs *regs) in fp_unavailable_tm() argument
1818 regs->nip, regs->msr); in fp_unavailable_tm()
1846 void altivec_unavailable_tm(struct pt_regs *regs) in altivec_unavailable_tm() argument
1854 regs->nip, regs->msr); in altivec_unavailable_tm()
1861 void vsx_unavailable_tm(struct pt_regs *regs) in vsx_unavailable_tm() argument
1872 regs->nip, regs->msr); in vsx_unavailable_tm()
1886 void performance_monitor_exception(struct pt_regs *regs) in performance_monitor_exception() argument
1890 perf_irq(regs); in performance_monitor_exception()
1894 static void handle_debug(struct pt_regs *regs, unsigned long debug_status) in handle_debug() argument
1906 do_send_trap(regs, mfspr(SPRN_DAC1), debug_status, in handle_debug()
1911 do_send_trap(regs, mfspr(SPRN_DAC2), debug_status, in handle_debug()
1917 do_send_trap(regs, mfspr(SPRN_IAC1), debug_status, in handle_debug()
1922 do_send_trap(regs, mfspr(SPRN_IAC2), debug_status, in handle_debug()
1928 do_send_trap(regs, mfspr(SPRN_IAC3), debug_status, in handle_debug()
1933 do_send_trap(regs, mfspr(SPRN_IAC4), debug_status, in handle_debug()
1944 regs->msr |= MSR_DE; in handle_debug()
1953 void DebugException(struct pt_regs *regs, unsigned long debug_status) in DebugException() argument
1963 regs->msr &= ~MSR_DE; in DebugException()
1971 if (user_mode(regs)) { in DebugException()
1974 regs->msr |= MSR_DE; in DebugException()
1978 if (kprobe_post_handler(regs)) in DebugException()
1981 if (notify_die(DIE_SSTEP, "block_step", regs, 5, in DebugException()
1985 if (debugger_sstep(regs)) in DebugException()
1988 regs->msr &= ~MSR_DE; in DebugException()
1995 if (kprobe_post_handler(regs)) in DebugException()
1998 if (notify_die(DIE_SSTEP, "single_step", regs, 5, in DebugException()
2003 if (debugger_sstep(regs)) in DebugException()
2006 if (user_mode(regs)) { in DebugException()
2010 regs->msr |= MSR_DE; in DebugException()
2016 _exception(SIGTRAP, regs, TRAP_TRACE, regs->nip); in DebugException()
2018 handle_debug(regs, debug_status); in DebugException()
2024 void TAUException(struct pt_regs *regs) in TAUException() argument
2027 regs->nip, regs->msr, regs->trap, print_tainted()); in TAUException()
2032 void altivec_assist_exception(struct pt_regs *regs) in altivec_assist_exception() argument
2036 if (!user_mode(regs)) { in altivec_assist_exception()
2038 " at %lx\n", regs->nip); in altivec_assist_exception()
2039 die("Kernel VMX/Altivec assist exception", regs, SIGILL); in altivec_assist_exception()
2044 PPC_WARN_EMULATED(altivec, regs); in altivec_assist_exception()
2045 err = emulate_altivec(regs); in altivec_assist_exception()
2047 regs->nip += 4; /* skip emulated instruction */ in altivec_assist_exception()
2048 emulate_single_step(regs); in altivec_assist_exception()
2054 _exception(SIGSEGV, regs, SEGV_ACCERR, regs->nip); in altivec_assist_exception()
2059 "in %s at %lx\n", current->comm, regs->nip); in altivec_assist_exception()
2066 void CacheLockingException(struct pt_regs *regs, unsigned long address, in CacheLockingException() argument
2074 _exception(SIGILL, regs, ILL_PRVOPC, regs->nip); in CacheLockingException()
2080 void SPEFloatingPointException(struct pt_regs *regs) in SPEFloatingPointException() argument
2082 extern int do_spe_mathemu(struct pt_regs *regs); in SPEFloatingPointException()
2089 if (!arch_irq_disabled_regs(regs)) in SPEFloatingPointException()
2111 err = do_spe_mathemu(regs); in SPEFloatingPointException()
2113 regs->nip += 4; /* skip emulated instruction */ in SPEFloatingPointException()
2114 emulate_single_step(regs); in SPEFloatingPointException()
2120 _exception(SIGSEGV, regs, SEGV_ACCERR, regs->nip); in SPEFloatingPointException()
2124 "in %s at %lx\n", current->comm, regs->nip); in SPEFloatingPointException()
2126 _exception(SIGFPE, regs, code, regs->nip); in SPEFloatingPointException()
2132 void SPEFloatingPointRoundException(struct pt_regs *regs) in SPEFloatingPointRoundException() argument
2134 extern int speround_handler(struct pt_regs *regs); in SPEFloatingPointRoundException()
2138 if (!arch_irq_disabled_regs(regs)) in SPEFloatingPointRoundException()
2142 if (regs->msr & MSR_SPE) in SPEFloatingPointRoundException()
2146 regs->nip -= 4; in SPEFloatingPointRoundException()
2147 err = speround_handler(regs); in SPEFloatingPointRoundException()
2149 regs->nip += 4; /* skip emulated instruction */ in SPEFloatingPointRoundException()
2150 emulate_single_step(regs); in SPEFloatingPointRoundException()
2156 _exception(SIGSEGV, regs, SEGV_ACCERR, regs->nip); in SPEFloatingPointRoundException()
2160 "in %s at %lx\n", current->comm, regs->nip); in SPEFloatingPointRoundException()
2162 _exception(SIGFPE, regs, FPE_FLTUNK, regs->nip); in SPEFloatingPointRoundException()
2174 void unrecoverable_exception(struct pt_regs *regs) in unrecoverable_exception() argument
2177 regs->trap, regs->nip, regs->msr); in unrecoverable_exception()
2178 die("Unrecoverable exception", regs, SIGABRT); in unrecoverable_exception()
2187 void __attribute__ ((weak)) WatchdogHandler(struct pt_regs *regs) in WatchdogHandler() argument
2194 void WatchdogException(struct pt_regs *regs) in WatchdogException() argument
2197 WatchdogHandler(regs); in WatchdogException()
2205 void kernel_bad_stack(struct pt_regs *regs) in kernel_bad_stack() argument
2208 regs->gpr[1], regs->nip); in kernel_bad_stack()
2209 die("Bad kernel stack pointer", regs, SIGABRT); in kernel_bad_stack()