Lines Matching refs:regs
54 static void show_regs(struct pt_regs *regs) in show_regs() argument
59 regs->nip, regs->xer, regs->link, regs, regs->trap, regs->dar); in show_regs()
61 regs->msr, regs->msr & MSR_EE ? 1 : 0, in show_regs()
62 regs->msr & MSR_PR ? 1 : 0, regs->msr & MSR_FP ? 1 : 0, in show_regs()
63 regs->msr & MSR_ME ? 1 : 0, regs->msr & MSR_IR ? 1 : 0, in show_regs()
64 regs->msr & MSR_DR ? 1 : 0); in show_regs()
71 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()
85 void MachineCheckException(struct pt_regs *regs) in MachineCheckException() argument
87 unsigned long fixup = search_exception_table(regs->nip); in MachineCheckException()
94 regs->nip = fixup; in MachineCheckException()
100 printf("regs %p ", regs); in MachineCheckException()
101 switch (regs->msr & 0x000F0000) { in MachineCheckException()
118 show_regs(regs); in MachineCheckException()
119 print_backtrace((unsigned long *)regs->gpr[1]); in MachineCheckException()
123 void AlignmentException(struct pt_regs *regs) in AlignmentException() argument
125 show_regs(regs); in AlignmentException()
126 print_backtrace((unsigned long *)regs->gpr[1]); in AlignmentException()
130 void ProgramCheckException(struct pt_regs *regs) in ProgramCheckException() argument
132 show_regs(regs); in ProgramCheckException()
133 print_backtrace((unsigned long *)regs->gpr[1]); in ProgramCheckException()
137 void SoftEmuException(struct pt_regs *regs) in SoftEmuException() argument
139 show_regs(regs); in SoftEmuException()
140 print_backtrace((unsigned long *)regs->gpr[1]); in SoftEmuException()
145 void UnknownException(struct pt_regs *regs) in UnknownException() argument
148 regs->nip, regs->msr, regs->trap); in UnknownException()
149 _exception(0, regs); in UnknownException()
152 void DebugException(struct pt_regs *regs) in DebugException() argument
154 printf("Debugger trap at @ %lx\n", regs->nip); in DebugException()
155 show_regs(regs); in DebugException()