Lines Matching refs:regs
35 static void _check_fault(struct rt_hw_exp_stack *regs, uint32_t pc_adj, char *info) in _check_fault() argument
40 is_user_fault = !(regs->cpsr & 0x1f); in _check_fault()
43 rt_kprintf("%s! pc = 0x%x\n", info, regs->pc - pc_adj); in _check_fault()
56 lwp_core_dump(regs, pc_adj); in _check_fault()
96 static int user_fault_fixable(unsigned long esr, struct rt_hw_exp_stack *regs) in user_fault_fixable() argument
153 void rt_hw_show_register(struct rt_hw_exp_stack *regs) in rt_hw_show_register() argument
156 …16.16p X02:0x%16.16p X03:0x%16.16p\n", (void *)regs->x0, (void *)regs->x1, (void *)regs->x2, (void… in rt_hw_show_register()
157 …16.16p X06:0x%16.16p X07:0x%16.16p\n", (void *)regs->x4, (void *)regs->x5, (void *)regs->x6, (void… in rt_hw_show_register()
158 …16.16p X10:0x%16.16p X11:0x%16.16p\n", (void *)regs->x8, (void *)regs->x9, (void *)regs->x10, (voi… in rt_hw_show_register()
159 …6.16p X14:0x%16.16p X15:0x%16.16p\n", (void *)regs->x12, (void *)regs->x13, (void *)regs->x14, (vo… in rt_hw_show_register()
160 …6.16p X18:0x%16.16p X19:0x%16.16p\n", (void *)regs->x16, (void *)regs->x17, (void *)regs->x18, (vo… in rt_hw_show_register()
161 …6.16p X22:0x%16.16p X23:0x%16.16p\n", (void *)regs->x20, (void *)regs->x21, (void *)regs->x22, (vo… in rt_hw_show_register()
162 …6.16p X26:0x%16.16p X27:0x%16.16p\n", (void *)regs->x24, (void *)regs->x25, (void *)regs->x26, (vo… in rt_hw_show_register()
163 …"X28:0x%16.16p X29:0x%16.16p X30:0x%16.16p\n", (void *)regs->x28, (void *)regs->x29, (void *)regs-… in rt_hw_show_register()
164 rt_kprintf("SP_EL0:0x%16.16p\n", (void *)regs->sp_el0); in rt_hw_show_register()
165 rt_kprintf("SPSR :0x%16.16p\n", (void *)regs->cpsr); in rt_hw_show_register()
166 rt_kprintf("EPC :0x%16.16p\n", (void *)regs->pc); in rt_hw_show_register()
278 void rt_hw_trap_irq(struct rt_hw_exp_stack *regs) in rt_hw_trap_irq() argument
281 .context = regs, in rt_hw_trap_irq()
291 #define DBG_CHECK_EVENT(regs, esr) dbg_check_event(regs, esr) argument
293 #define DBG_CHECK_EVENT(regs, esr) (0) argument
327 void SVC_Handler(struct rt_hw_exp_stack *regs);
328 void rt_hw_trap_exception(struct rt_hw_exp_stack *regs) in rt_hw_trap_exception() argument
336 if (DBG_CHECK_EVENT(regs, esr)) in rt_hw_trap_exception()
342 SVC_Handler(regs); in rt_hw_trap_exception()
351 if ((regs->cpsr & 0x1f) == 0) in rt_hw_trap_exception()
353 if (user_fault_fixable(esr, regs)) in rt_hw_trap_exception()
358 if (_irq_is_disable(regs->cpsr)) in rt_hw_trap_exception()
366 else if (user_fault_fixable(esr, regs)) in rt_hw_trap_exception()
370 print_exception(esr, regs->pc); in rt_hw_trap_exception()
371 rt_hw_show_register(regs); in rt_hw_trap_exception()
381 _check_fault(regs, 0, "user fault"); in rt_hw_trap_exception()
384 struct rt_hw_backtrace_frame frame = {.fp = regs->x29, .pc = regs->pc}; in rt_hw_trap_exception()
389 void rt_hw_trap_serror(struct rt_hw_exp_stack *regs) in rt_hw_trap_serror() argument
392 rt_hw_show_register(regs); in rt_hw_trap_serror()