Changeset a35b458 in mainline for kernel/arch/arm32/src/exception.c
- Timestamp:
- 2018-03-02T20:10:49Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f1380b7
- Parents:
- 3061bc1
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:38:31)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-02 20:10:49)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/arm32/src/exception.c
r3061bc1 ra35b458 71 71 volatile uint32_t handler_address_ptr = EXC_VECTORS_SIZE - 72 72 PREFETCH_OFFSET; 73 73 74 74 /* make it LDR instruction and store at exception vector */ 75 75 *vector = handler_address_ptr | LDR_OPCODE; 76 76 smc_coherence(vector); 77 77 78 78 /* store handler's address */ 79 79 *(vector + EXC_VECTORS) = handler_addr; … … 99 99 install_handler((unsigned) reset_exception_entry, 100 100 (unsigned *) EXC_RESET_VEC); 101 101 102 102 install_handler((unsigned) undef_instr_exception_entry, 103 103 (unsigned *) EXC_UNDEF_INSTR_VEC); 104 104 105 105 install_handler((unsigned) swi_exception_entry, 106 106 (unsigned *) EXC_SWI_VEC); 107 107 108 108 install_handler((unsigned) prefetch_abort_exception_entry, 109 109 (unsigned *) EXC_PREFETCH_ABORT_VEC); 110 110 111 111 install_handler((unsigned) data_abort_exception_entry, 112 112 (unsigned *) EXC_DATA_ABORT_VEC); 113 113 114 114 install_handler((unsigned) irq_exception_entry, 115 115 (unsigned *) EXC_IRQ_VEC); 116 116 117 117 install_handler((unsigned) fiq_exception_entry, 118 118 (unsigned *) EXC_FIQ_VEC); … … 140 140 { 141 141 uint32_t control_reg = SCTLR_read(); 142 142 143 143 /* switch on the high vectors bit */ 144 144 control_reg |= SCTLR_HIGH_VECTORS_EN_FLAG; 145 145 146 146 SCTLR_write(control_reg); 147 147 } … … 190 190 #endif 191 191 install_exception_handlers(); 192 192 193 193 exc_register(EXC_UNDEF_INSTR, "undefined instruction", true, 194 194 (iroutine_t) undef_insn_exception);
Note:
See TracChangeset
for help on using the changeset viewer.