| 31 | #endif |
| 32 | |
| 33 | void check_user_fault(struct rt_hw_exp_stack *regs, uint32_t pc_adj, char *info) |
| 34 | { |
| 35 | uint32_t mode = regs->cpsr; |
| 36 | |
| 37 | if ((mode & 0x1f) == 0x10) |
| 38 | { |
| 39 | rt_kprintf("%s! pc = 0x%08x\n", info, regs->pc - pc_adj); |
| 40 | #ifdef LWP_USING_CORE_DUMP |
| 41 | lwp_core_dump(regs, pc_adj); |
| 42 | #endif |
| 43 | sys_exit_group(-1); |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | int check_data_abort(struct rt_hw_exp_stack *regs) |
| 48 | { |
no test coverage detected