• Home
  • Raw
  • Download

Lines Matching refs:regs

88 void show_regs(struct pt_regs *regs)  in show_regs()  argument
93 regs->nip, regs->xer, regs->link, regs, regs->trap, regs->dar); in show_regs()
95 regs->msr, regs->msr&MSR_EE ? 1 : 0, regs->msr&MSR_PR ? 1 : 0, in show_regs()
96 regs->msr & MSR_FP ? 1 : 0,regs->msr&MSR_ME ? 1 : 0, in show_regs()
97 regs->msr&MSR_IR ? 1 : 0, in show_regs()
98 regs->msr&MSR_DR ? 1 : 0); in show_regs()
107 printf("%08lX ", regs->gpr[i]); in show_regs()
116 static void _exception(int signr, struct pt_regs *regs) in _exception() argument
118 show_regs(regs); in _exception()
119 print_backtrace((unsigned long *)regs->gpr[1]); in _exception()
120 panic("Exception in kernel pc %lx signal %d",regs->nip,signr); in _exception()
123 void CritcalInputException(struct pt_regs *regs) in CritcalInputException() argument
130 void MachineCheckException(struct pt_regs *regs) in MachineCheckException() argument
139 if ((fixup = search_exception_table(regs->nip)) != 0) { in MachineCheckException()
140 regs->nip = fixup; in MachineCheckException()
153 if (debugger_exception_handler && (*debugger_exception_handler)(regs)) in MachineCheckException()
185 show_regs(regs); in MachineCheckException()
188 print_backtrace((unsigned long *)regs->gpr[1]); in MachineCheckException()
194 regs->nip += 4; /* skip offending instruction */ in MachineCheckException()
196 regs->nip); in MachineCheckException()
198 printf("Returning back to 0x%08lx\n",regs->nip); in MachineCheckException()
202 void AlignmentException(struct pt_regs *regs) in AlignmentException() argument
205 if (debugger_exception_handler && (*debugger_exception_handler)(regs)) in AlignmentException()
209 show_regs(regs); in AlignmentException()
210 print_backtrace((unsigned long *)regs->gpr[1]); in AlignmentException()
214 void ProgramCheckException(struct pt_regs *regs) in ProgramCheckException() argument
219 if (debugger_exception_handler && (*debugger_exception_handler)(regs)) in ProgramCheckException()
223 show_regs(regs); in ProgramCheckException()
233 print_backtrace((unsigned long *)regs->gpr[1]); in ProgramCheckException()
237 void PITException(struct pt_regs *regs) in PITException() argument
250 void UnknownException(struct pt_regs *regs) in UnknownException() argument
253 if (debugger_exception_handler && (*debugger_exception_handler)(regs)) in UnknownException()
258 regs->nip, regs->msr, regs->trap); in UnknownException()
259 _exception(0, regs); in UnknownException()
262 void ExtIntException(struct pt_regs *regs) in ExtIntException() argument
269 if (debugger_exception_handler && (*debugger_exception_handler)(regs)) in ExtIntException()
274 regs->nip, regs->msr, regs->trap); in ExtIntException()
277 show_regs(regs); in ExtIntException()
278 print_backtrace((unsigned long *)regs->gpr[1]); in ExtIntException()
281 void DebugException(struct pt_regs *regs) in DebugException() argument
283 printf("Debugger trap at @ %lx\n", regs->nip ); in DebugException()
284 show_regs(regs); in DebugException()
286 do_bedbug_breakpoint( regs ); in DebugException()