Lines Matching refs:regs

32 void rt_hw_trap_svc(struct rt_hw_exp_stack *regs)  in rt_hw_trap_svc()  argument
35 rt_hw_show_register(regs); in rt_hw_trap_svc()
59 void rt_hw_show_register(struct rt_hw_exp_stack *regs) in rt_hw_show_register() argument
62 …rt_kprintf("r00:0x%08x r01:0x%08x r02:0x%08x r03:0x%08x\n", regs->r0, regs->r1, regs->r2, regs->r3… in rt_hw_show_register()
63 …rt_kprintf("r04:0x%08x r05:0x%08x r06:0x%08x r07:0x%08x\n", regs->r4, regs->r5, regs->r6, regs->r7… in rt_hw_show_register()
64 rt_kprintf("r08:0x%08x r09:0x%08x r10:0x%08x\n", regs->r8, regs->r9, regs->r10); in rt_hw_show_register()
65 rt_kprintf("fp :0x%08x ip :0x%08x\n", regs->fp, regs->ip); in rt_hw_show_register()
66 rt_kprintf("sp :0x%08x lr :0x%08x pc :0x%08x\n", regs->sp, regs->lr, regs->pc); in rt_hw_show_register()
67 rt_kprintf("cpsr:0x%08x\n", regs->cpsr); in rt_hw_show_register()
72 result = rt_exception_hook(regs); in rt_hw_show_register()
77 void (*rt_trap_hook)(struct rt_hw_exp_stack *regs, const char *ex, unsigned int exception_type);
84 void rt_hw_trap_set_hook(void (*hook)(struct rt_hw_exp_stack *regs, const char *ex, unsigned int ex… in rt_hw_trap_set_hook() argument
97 void rt_hw_trap_undef(struct rt_hw_exp_stack *regs) in rt_hw_trap_undef() argument
104 if (regs->cpsr & (1 << 5)) in rt_hw_trap_undef()
107 addr = regs->pc - 2; in rt_hw_trap_undef()
111 addr = regs->pc - 4; in rt_hw_trap_undef()
121 regs->pc = addr; in rt_hw_trap_undef()
130 rt_hw_show_register(regs); in rt_hw_trap_undef()
138 rt_trap_hook(regs, "undefined instruction", UND_EXCEPTION); in rt_hw_trap_undef()
151 void rt_hw_trap_swi(struct rt_hw_exp_stack *regs) in rt_hw_trap_swi() argument
156 rt_hw_show_register(regs); in rt_hw_trap_swi()
164 rt_trap_hook(regs, "software instruction", SWI_EXCEPTION); in rt_hw_trap_swi()
176 void rt_hw_trap_pabt(struct rt_hw_exp_stack *regs) in rt_hw_trap_pabt() argument
181 rt_hw_show_register(regs); in rt_hw_trap_pabt()
189 rt_trap_hook(regs, "prefetch abort", PABT_EXCEPTION); in rt_hw_trap_pabt()
201 void rt_hw_trap_dabt(struct rt_hw_exp_stack *regs) in rt_hw_trap_dabt() argument
206 rt_hw_show_register(regs); in rt_hw_trap_dabt()
214 rt_trap_hook(regs, "data abort", DABT_EXCEPTION); in rt_hw_trap_dabt()
225 void rt_hw_trap_resv(struct rt_hw_exp_stack *regs) in rt_hw_trap_resv() argument
230 rt_hw_show_register(regs); in rt_hw_trap_resv()
238 rt_trap_hook(regs, "reserved trap", RESV_EXCEPTION); in rt_hw_trap_resv()