Lines Matching refs:regs

55 static void show_regs(struct pt_regs *regs)  in show_regs()  argument
60 regs->nip, regs->xer, regs->link, regs, regs->trap, regs->dar); in show_regs()
62 regs->msr, regs->msr & MSR_EE ? 1 : 0, in show_regs()
63 regs->msr & MSR_PR ? 1 : 0, regs->msr & MSR_FP ? 1 : 0, in show_regs()
64 regs->msr & MSR_ME ? 1 : 0, regs->msr & MSR_IR ? 1 : 0, in show_regs()
65 regs->msr & MSR_DR ? 1 : 0); in show_regs()
72 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()
86 void MachineCheckException(struct pt_regs *regs) in MachineCheckException() argument
88 unsigned long fixup = search_exception_table(regs->nip); in MachineCheckException()
95 regs->nip = fixup; in MachineCheckException()
101 printf("regs %p ", regs); in MachineCheckException()
102 switch (regs->msr & 0x000F0000) { in MachineCheckException()
119 show_regs(regs); in MachineCheckException()
120 print_backtrace((unsigned long *)regs->gpr[1]); in MachineCheckException()
124 void AlignmentException(struct pt_regs *regs) in AlignmentException() argument
126 show_regs(regs); in AlignmentException()
127 print_backtrace((unsigned long *)regs->gpr[1]); in AlignmentException()
131 void ProgramCheckException(struct pt_regs *regs) in ProgramCheckException() argument
133 show_regs(regs); in ProgramCheckException()
134 print_backtrace((unsigned long *)regs->gpr[1]); in ProgramCheckException()
138 void SoftEmuException(struct pt_regs *regs) in SoftEmuException() argument
140 show_regs(regs); in SoftEmuException()
141 print_backtrace((unsigned long *)regs->gpr[1]); in SoftEmuException()
146 void UnknownException(struct pt_regs *regs) in UnknownException() argument
149 regs->nip, regs->msr, regs->trap); in UnknownException()
150 _exception(0, regs); in UnknownException()
153 void DebugException(struct pt_regs *regs) in DebugException() argument
155 printf("Debugger trap at @ %lx\n", regs->nip); in DebugException()
156 show_regs(regs); in DebugException()