MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / ProgramCheckException

Function ProgramCheckException

libcpu/ppc/ppc405/traps.c:169–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169void ProgramCheckException(struct pt_regs *regs)
170{
171 long esr_val;
172
173 show_regs(regs);
174
175 esr_val = get_esr();
176 if( esr_val & ESR_PIL )
177 rt_kprintf( "** Illegal Instruction **\n" );
178 else if( esr_val & ESR_PPR )
179 rt_kprintf( "** Privileged Instruction **\n" );
180 else if( esr_val & ESR_PTR )
181 rt_kprintf( "** Trap Instruction **\n" );
182
183 print_backtrace((unsigned long *)regs->gpr[1]);
184 panic("Program Check Exception");
185}
186
187void DecrementerPITException(struct pt_regs *regs)
188{

Callers

nothing calls this directly

Calls 4

rt_kprintfFunction · 0.85
print_backtraceFunction · 0.85
panicFunction · 0.85
show_regsFunction · 0.70

Tested by

no test coverage detected