Lines Matching refs:regs

87 void show_regs(struct pt_regs *regs)  in show_regs()  argument
92 regs->nip, regs->xer, regs->link, regs, regs->trap, regs->dar); in show_regs()
94 regs->msr, regs->msr&MSR_EE ? 1 : 0, regs->msr&MSR_PR ? 1 : 0, in show_regs()
95 regs->msr & MSR_FP ? 1 : 0,regs->msr&MSR_ME ? 1 : 0, in show_regs()
96 regs->msr&MSR_IR ? 1 : 0, in show_regs()
97 regs->msr&MSR_DR ? 1 : 0); in show_regs()
106 printf("%08lX ", regs->gpr[i]); in show_regs()
115 static void _exception(int signr, struct pt_regs *regs) in _exception() argument
117 show_regs(regs); in _exception()
118 print_backtrace((unsigned long *)regs->gpr[1]); in _exception()
119 panic("Exception in kernel pc %lx signal %d",regs->nip,signr); in _exception()
122 void CritcalInputException(struct pt_regs *regs) in CritcalInputException() argument
129 void MachineCheckException(struct pt_regs *regs) in MachineCheckException() argument
138 if ((fixup = search_exception_table(regs->nip)) != 0) { in MachineCheckException()
139 regs->nip = fixup; in MachineCheckException()
152 if (debugger_exception_handler && (*debugger_exception_handler)(regs)) in MachineCheckException()
184 show_regs(regs); in MachineCheckException()
187 print_backtrace((unsigned long *)regs->gpr[1]); in MachineCheckException()
193 regs->nip += 4; /* skip offending instruction */ in MachineCheckException()
195 regs->nip); in MachineCheckException()
197 printf("Returning back to 0x%08lx\n",regs->nip); in MachineCheckException()
201 void AlignmentException(struct pt_regs *regs) in AlignmentException() argument
204 if (debugger_exception_handler && (*debugger_exception_handler)(regs)) in AlignmentException()
208 show_regs(regs); in AlignmentException()
209 print_backtrace((unsigned long *)regs->gpr[1]); in AlignmentException()
213 void ProgramCheckException(struct pt_regs *regs) in ProgramCheckException() argument
218 if (debugger_exception_handler && (*debugger_exception_handler)(regs)) in ProgramCheckException()
222 show_regs(regs); in ProgramCheckException()
232 print_backtrace((unsigned long *)regs->gpr[1]); in ProgramCheckException()
236 void PITException(struct pt_regs *regs) in PITException() argument
249 void UnknownException(struct pt_regs *regs) in UnknownException() argument
252 if (debugger_exception_handler && (*debugger_exception_handler)(regs)) in UnknownException()
257 regs->nip, regs->msr, regs->trap); in UnknownException()
258 _exception(0, regs); in UnknownException()
261 void ExtIntException(struct pt_regs *regs) in ExtIntException() argument
268 if (debugger_exception_handler && (*debugger_exception_handler)(regs)) in ExtIntException()
273 regs->nip, regs->msr, regs->trap); in ExtIntException()
276 show_regs(regs); in ExtIntException()
277 print_backtrace((unsigned long *)regs->gpr[1]); in ExtIntException()
280 void DebugException(struct pt_regs *regs) in DebugException() argument
282 printf("Debugger trap at @ %lx\n", regs->nip ); in DebugException()
283 show_regs(regs); in DebugException()