Changes in kernel/arch/arm32/src/exception.c [5481a22e:4bd3f45] in mainline
- File:
-
- 1 edited
-
kernel/arch/arm32/src/exception.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/arm32/src/exception.c
r5481a22e r4bd3f45 161 161 } 162 162 163 /** Undefined instruction exception handler.164 *165 * Calls scheduler_fpu_lazy_request166 */167 static void undef_insn_exception(unsigned int exc_no, istate_t *istate)168 {169 #ifdef CONFIG_FPU170 if (handle_if_fpu_exception()) {171 /*172 * Retry the failing instruction,173 * ARM Architecture Reference Manual says on p.B1-1169174 * that offset for undef instruction exception is 4175 */176 istate->pc -= 4;177 return;178 }179 #endif180 fault_if_from_uspace(istate, "Undefined instruction.");181 panic_badtrap(istate, exc_no, "Undefined instruction.");182 }183 184 163 /** Initializes exception handling. 185 164 * … … 195 174 install_exception_handlers(); 196 175 197 exc_register(EXC_UNDEF_INSTR, "undefined instruction", true,198 (iroutine_t) undef_insn_exception);199 176 exc_register(EXC_IRQ, "interrupt", true, 200 177 (iroutine_t) irq_exception);
Note:
See TracChangeset
for help on using the changeset viewer.
