Lines Matching refs:regs
53 asmlinkage void sw_exception(struct pt_regs *regs) in sw_exception() argument
55 _exception(SIGTRAP, regs, TRAP_BRKPT, regs->r16); in sw_exception()
56 flush_dcache_range(regs->r16, regs->r16 + 0x4); in sw_exception()
57 flush_icache_range(regs->r16, regs->r16 + 0x4); in sw_exception()
60 void _exception(int signr, struct pt_regs *regs, int code, unsigned long addr) in _exception() argument
64 if (kernel_mode(regs)) in _exception()
65 die("Exception in kernel mode", regs, signr); in _exception()
74 asmlinkage void full_exception(struct pt_regs *regs, unsigned int type, in full_exception() argument
78 addr = regs->pc; in full_exception()
83 type, user_mode(regs) ? "user" : "kernel", fsr, in full_exception()
84 (unsigned int) regs->pc, (unsigned int) regs->esr); in full_exception()
89 if (user_mode(regs)) { in full_exception()
91 _exception(SIGILL, regs, ILL_ILLOPC, addr); in full_exception()
95 die("opcode exception", regs, SIGBUS); in full_exception()
98 if (user_mode(regs)) { in full_exception()
100 _exception(SIGBUS, regs, BUS_ADRERR, addr); in full_exception()
104 die("bus exception", regs, SIGBUS); in full_exception()
107 if (user_mode(regs)) { in full_exception()
109 _exception(SIGBUS, regs, BUS_ADRERR, addr); in full_exception()
113 die("bus exception", regs, SIGBUS); in full_exception()
116 if (user_mode(regs)) { in full_exception()
118 _exception(SIGFPE, regs, FPE_INTDIV, addr); in full_exception()
122 die("Divide by zero exception", regs, SIGBUS); in full_exception()
138 _exception(SIGFPE, regs, fsr, addr); in full_exception()
144 _exception(SIGILL, regs, ILL_PRVOPC, addr); in full_exception()
151 kernel_mode(regs) ? "kernel" : "user"); in full_exception()