• Home
  • Raw
  • Download

Lines Matching refs:regs

51 void show_regs(struct pt_regs *regs)  in show_regs()  argument
56 regs->nip, regs->xer, regs->link, regs, regs->trap, regs->dar); in show_regs()
58 regs->msr, regs->msr&MSR_EE ? 1 : 0, regs->msr&MSR_PR ? 1 : 0, in show_regs()
59 regs->msr & MSR_FP ? 1 : 0,regs->msr&MSR_ME ? 1 : 0, in show_regs()
60 regs->msr&MSR_IR ? 1 : 0, in show_regs()
61 regs->msr&MSR_DR ? 1 : 0); in show_regs()
69 printf("%08lX ", regs->gpr[i]); in show_regs()
77 static void _exception(int signr, struct pt_regs *regs) in _exception() argument
79 show_regs(regs); in _exception()
80 print_backtrace((unsigned long *)regs->gpr[1]); in _exception()
81 panic("Exception in kernel pc %lx signal %d",regs->nip,signr); in _exception()
101 void MachineCheckException(struct pt_regs *regs) in MachineCheckException() argument
122 if ((fixup = search_exception_table(regs->nip)) != 0) { in MachineCheckException()
123 regs->nip = fixup; in MachineCheckException()
128 if (debugger_exception_handler && (*debugger_exception_handler)(regs)) in MachineCheckException()
134 printf("regs %p ",regs); in MachineCheckException()
135 switch( regs->msr & 0x000F0000) { in MachineCheckException()
152 show_regs(regs); in MachineCheckException()
153 print_backtrace((unsigned long *)regs->gpr[1]); in MachineCheckException()
160 void AlignmentException(struct pt_regs *regs) in AlignmentException() argument
163 if (debugger_exception_handler && (*debugger_exception_handler)(regs)) in AlignmentException()
166 show_regs(regs); in AlignmentException()
167 print_backtrace((unsigned long *)regs->gpr[1]); in AlignmentException()
171 void ProgramCheckException(struct pt_regs *regs) in ProgramCheckException() argument
174 if (debugger_exception_handler && (*debugger_exception_handler)(regs)) in ProgramCheckException()
177 show_regs(regs); in ProgramCheckException()
178 print_backtrace((unsigned long *)regs->gpr[1]); in ProgramCheckException()
182 void SoftEmuException(struct pt_regs *regs) in SoftEmuException() argument
185 if (debugger_exception_handler && (*debugger_exception_handler)(regs)) in SoftEmuException()
188 show_regs(regs); in SoftEmuException()
189 print_backtrace((unsigned long *)regs->gpr[1]); in SoftEmuException()
194 void UnknownException(struct pt_regs *regs) in UnknownException() argument
197 if (debugger_exception_handler && (*debugger_exception_handler)(regs)) in UnknownException()
201 regs->nip, regs->msr, regs->trap); in UnknownException()
202 _exception(0, regs); in UnknownException()
209 void DebugException(struct pt_regs *regs) in DebugException() argument
211 printf("Debugger trap at @ %lx\n", regs->nip ); in DebugException()
212 show_regs(regs); in DebugException()
214 do_bedbug_breakpoint( regs ); in DebugException()