Lines Matching refs:regs
53 void show_regs(struct pt_regs *regs) in show_regs() argument
58 regs->nip, regs->xer, regs->link, regs, regs->trap, regs->dar); in show_regs()
60 regs->msr, regs->msr&MSR_EE ? 1 : 0, regs->msr&MSR_PR ? 1 : 0, in show_regs()
61 regs->msr & MSR_FP ? 1 : 0,regs->msr&MSR_ME ? 1 : 0, in show_regs()
62 regs->msr&MSR_IR ? 1 : 0, in show_regs()
63 regs->msr&MSR_DR ? 1 : 0); in show_regs()
71 printf("%08lX ", regs->gpr[i]); in show_regs()
79 static void _exception(int signr, struct pt_regs *regs) in _exception() argument
81 show_regs(regs); in _exception()
82 print_backtrace((unsigned long *)regs->gpr[1]); in _exception()
83 panic("Exception in kernel pc %lx signal %d",regs->nip,signr); in _exception()
103 void MachineCheckException(struct pt_regs *regs) in MachineCheckException() argument
124 if ((fixup = search_exception_table(regs->nip)) != 0) { in MachineCheckException()
125 regs->nip = fixup; in MachineCheckException()
130 if (debugger_exception_handler && (*debugger_exception_handler)(regs)) in MachineCheckException()
136 printf("regs %p ",regs); in MachineCheckException()
137 switch( regs->msr & 0x000F0000) { in MachineCheckException()
154 show_regs(regs); in MachineCheckException()
155 print_backtrace((unsigned long *)regs->gpr[1]); in MachineCheckException()
162 void AlignmentException(struct pt_regs *regs) in AlignmentException() argument
165 if (debugger_exception_handler && (*debugger_exception_handler)(regs)) in AlignmentException()
168 show_regs(regs); in AlignmentException()
169 print_backtrace((unsigned long *)regs->gpr[1]); in AlignmentException()
173 void ProgramCheckException(struct pt_regs *regs) in ProgramCheckException() argument
176 if (debugger_exception_handler && (*debugger_exception_handler)(regs)) in ProgramCheckException()
179 show_regs(regs); in ProgramCheckException()
180 print_backtrace((unsigned long *)regs->gpr[1]); in ProgramCheckException()
184 void SoftEmuException(struct pt_regs *regs) in SoftEmuException() argument
187 if (debugger_exception_handler && (*debugger_exception_handler)(regs)) in SoftEmuException()
190 show_regs(regs); in SoftEmuException()
191 print_backtrace((unsigned long *)regs->gpr[1]); in SoftEmuException()
196 void UnknownException(struct pt_regs *regs) in UnknownException() argument
199 if (debugger_exception_handler && (*debugger_exception_handler)(regs)) in UnknownException()
203 regs->nip, regs->msr, regs->trap); in UnknownException()
204 _exception(0, regs); in UnknownException()
211 void DebugException(struct pt_regs *regs) in DebugException() argument
213 printf("Debugger trap at @ %lx\n", regs->nip ); in DebugException()
214 show_regs(regs); in DebugException()
216 do_bedbug_breakpoint( regs ); in DebugException()