Lines Matching refs:regs
52 void show_regs(struct pt_regs *regs) in show_regs() argument
57 regs->nip, regs->xer, regs->link, regs, regs->trap, regs->dar); in show_regs()
59 regs->msr, regs->msr&MSR_EE ? 1 : 0, regs->msr&MSR_PR ? 1 : 0, in show_regs()
60 regs->msr & MSR_FP ? 1 : 0,regs->msr&MSR_ME ? 1 : 0, in show_regs()
61 regs->msr&MSR_IR ? 1 : 0, in show_regs()
62 regs->msr&MSR_DR ? 1 : 0); in show_regs()
70 printf("%08lX ", regs->gpr[i]); in show_regs()
78 static void _exception(int signr, struct pt_regs *regs) in _exception() argument
80 show_regs(regs); in _exception()
81 print_backtrace((unsigned long *)regs->gpr[1]); in _exception()
82 panic("Exception in kernel pc %lx signal %d",regs->nip,signr); in _exception()
102 void MachineCheckException(struct pt_regs *regs) in MachineCheckException() argument
123 if ((fixup = search_exception_table(regs->nip)) != 0) { in MachineCheckException()
124 regs->nip = fixup; in MachineCheckException()
129 if (debugger_exception_handler && (*debugger_exception_handler)(regs)) in MachineCheckException()
135 printf("regs %p ",regs); in MachineCheckException()
136 switch( regs->msr & 0x000F0000) { in MachineCheckException()
153 show_regs(regs); in MachineCheckException()
154 print_backtrace((unsigned long *)regs->gpr[1]); in MachineCheckException()
161 void AlignmentException(struct pt_regs *regs) in AlignmentException() argument
164 if (debugger_exception_handler && (*debugger_exception_handler)(regs)) in AlignmentException()
167 show_regs(regs); in AlignmentException()
168 print_backtrace((unsigned long *)regs->gpr[1]); in AlignmentException()
172 void ProgramCheckException(struct pt_regs *regs) in ProgramCheckException() argument
175 if (debugger_exception_handler && (*debugger_exception_handler)(regs)) in ProgramCheckException()
178 show_regs(regs); in ProgramCheckException()
179 print_backtrace((unsigned long *)regs->gpr[1]); in ProgramCheckException()
183 void SoftEmuException(struct pt_regs *regs) in SoftEmuException() argument
186 if (debugger_exception_handler && (*debugger_exception_handler)(regs)) in SoftEmuException()
189 show_regs(regs); in SoftEmuException()
190 print_backtrace((unsigned long *)regs->gpr[1]); in SoftEmuException()
195 void UnknownException(struct pt_regs *regs) in UnknownException() argument
198 if (debugger_exception_handler && (*debugger_exception_handler)(regs)) in UnknownException()
202 regs->nip, regs->msr, regs->trap); in UnknownException()
203 _exception(0, regs); in UnknownException()
210 void DebugException(struct pt_regs *regs) in DebugException() argument
212 printf("Debugger trap at @ %lx\n", regs->nip ); in DebugException()
213 show_regs(regs); in DebugException()
215 do_bedbug_breakpoint( regs ); in DebugException()