Lines Matching refs:regs
59 void show_regs(struct pt_regs *regs) in show_regs() argument
65 regs->nip, regs->xer, regs->link, regs, regs->trap, regs->dar); in show_regs()
68 regs->msr, regs->msr & MSR_EE ? 1 : 0, in show_regs()
69 regs->msr & MSR_PR ? 1 : 0, regs->msr & MSR_FP ? 1 : 0, in show_regs()
70 regs->msr & MSR_ME ? 1 : 0, regs->msr & MSR_IR ? 1 : 0, in show_regs()
71 regs->msr & MSR_DR ? 1 : 0); in show_regs()
79 printf("%08lX ", regs->gpr[i]); in show_regs()
87 static void _exception(int signr, struct pt_regs *regs) in _exception() argument
89 show_regs(regs); in _exception()
90 print_backtrace((unsigned long *)regs->gpr[1]); in _exception()
91 panic("Exception in kernel pc %lx signal %d", regs->nip, signr); in _exception()
94 void MachineCheckException(struct pt_regs *regs) in MachineCheckException() argument
102 if ((fixup = search_exception_table(regs->nip)) != 0) { in MachineCheckException()
103 regs->nip = fixup; in MachineCheckException()
108 if (debugger_exception_handler && (*debugger_exception_handler) (regs)) in MachineCheckException()
114 printf("regs %p ", regs); in MachineCheckException()
115 switch ( regs->msr & 0x001F0000) { in MachineCheckException()
135 show_regs(regs); in MachineCheckException()
136 print_backtrace((unsigned long *)regs->gpr[1]); in MachineCheckException()
140 void AlignmentException(struct pt_regs *regs) in AlignmentException() argument
143 if (debugger_exception_handler && (*debugger_exception_handler) (regs)) in AlignmentException()
146 show_regs(regs); in AlignmentException()
147 print_backtrace((unsigned long *)regs->gpr[1]); in AlignmentException()
151 void ProgramCheckException(struct pt_regs *regs) in ProgramCheckException() argument
153 unsigned char *p = regs ? (unsigned char *)(regs->nip) : NULL; in ProgramCheckException()
157 if (debugger_exception_handler && (*debugger_exception_handler) (regs)) in ProgramCheckException()
160 show_regs(regs); in ProgramCheckException()
172 print_backtrace((unsigned long *)regs->gpr[1]); in ProgramCheckException()
176 void SoftEmuException(struct pt_regs *regs) in SoftEmuException() argument
179 if (debugger_exception_handler && (*debugger_exception_handler) (regs)) in SoftEmuException()
182 show_regs(regs); in SoftEmuException()
183 print_backtrace((unsigned long *)regs->gpr[1]); in SoftEmuException()
187 void UnknownException(struct pt_regs *regs) in UnknownException() argument
190 if (debugger_exception_handler && (*debugger_exception_handler) (regs)) in UnknownException()
193 printf("UnknownException regs@%lx\n", (ulong)regs); in UnknownException()
195 regs->nip, regs->msr, regs->trap); in UnknownException()
196 _exception(0, regs); in UnknownException()