Lines Matching refs:regs
58 void show_regs(struct pt_regs *regs) in show_regs() argument
64 regs->nip, regs->xer, regs->link, regs, regs->trap, regs->dar); in show_regs()
67 regs->msr, regs->msr & MSR_EE ? 1 : 0, in show_regs()
68 regs->msr & MSR_PR ? 1 : 0, regs->msr & MSR_FP ? 1 : 0, in show_regs()
69 regs->msr & MSR_ME ? 1 : 0, regs->msr & MSR_IR ? 1 : 0, in show_regs()
70 regs->msr & MSR_DR ? 1 : 0); in show_regs()
78 printf("%08lX ", regs->gpr[i]); in show_regs()
86 static void _exception(int signr, struct pt_regs *regs) in _exception() argument
88 show_regs(regs); in _exception()
89 print_backtrace((unsigned long *)regs->gpr[1]); in _exception()
90 panic("Exception in kernel pc %lx signal %d", regs->nip, signr); in _exception()
93 void MachineCheckException(struct pt_regs *regs) in MachineCheckException() argument
101 if ((fixup = search_exception_table(regs->nip)) != 0) { in MachineCheckException()
102 regs->nip = fixup; in MachineCheckException()
107 if (debugger_exception_handler && (*debugger_exception_handler) (regs)) in MachineCheckException()
113 printf("regs %p ", regs); in MachineCheckException()
114 switch ( regs->msr & 0x001F0000) { in MachineCheckException()
134 show_regs(regs); in MachineCheckException()
135 print_backtrace((unsigned long *)regs->gpr[1]); in MachineCheckException()
139 void AlignmentException(struct pt_regs *regs) in AlignmentException() argument
142 if (debugger_exception_handler && (*debugger_exception_handler) (regs)) in AlignmentException()
145 show_regs(regs); in AlignmentException()
146 print_backtrace((unsigned long *)regs->gpr[1]); in AlignmentException()
150 void ProgramCheckException(struct pt_regs *regs) in ProgramCheckException() argument
152 unsigned char *p = regs ? (unsigned char *)(regs->nip) : NULL; in ProgramCheckException()
156 if (debugger_exception_handler && (*debugger_exception_handler) (regs)) in ProgramCheckException()
159 show_regs(regs); in ProgramCheckException()
171 print_backtrace((unsigned long *)regs->gpr[1]); in ProgramCheckException()
175 void SoftEmuException(struct pt_regs *regs) in SoftEmuException() argument
178 if (debugger_exception_handler && (*debugger_exception_handler) (regs)) in SoftEmuException()
181 show_regs(regs); in SoftEmuException()
182 print_backtrace((unsigned long *)regs->gpr[1]); in SoftEmuException()
186 void UnknownException(struct pt_regs *regs) in UnknownException() argument
189 if (debugger_exception_handler && (*debugger_exception_handler) (regs)) in UnknownException()
192 printf("UnknownException regs@%lx\n", (ulong)regs); in UnknownException()
194 regs->nip, regs->msr, regs->trap); in UnknownException()
195 _exception(0, regs); in UnknownException()