Changeset eeaf667 in mainline
- Timestamp:
- 2008-06-14T11:45:40Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c7511ec
- Parents:
- d5087aa
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/arm32/src/exception.c
rd5087aa reeaf667 41 41 #include <arch/machine.h> 42 42 #include <arch/mm/page_fault.h> 43 #include <arch/barrier.h> 43 44 #include <print.h> 44 45 #include <syscall/syscall.h> … … 210 211 * Addresses of handlers are stored in memory following exception vectors. 211 212 */ 212 static void install_handler (unsigned handler_addr, unsigned*vector)213 static void install_handler(unsigned handler_addr, unsigned *vector) 213 214 { 214 215 /* relative address (related to exc. vector) of the word … … 220 221 /* make it LDR instruction and store at exception vector */ 221 222 *vector = handler_address_ptr | LDR_OPCODE; 223 smc_coherence(*vector); 222 224 223 225 /* store handler's address */ … … 227 229 228 230 /** Low-level Reset Exception handler. */ 229 static void reset_exception_entry( )231 static void reset_exception_entry(void) 230 232 { 231 233 PROCESS_EXCEPTION(EXC_RESET); … … 233 235 234 236 /** Low-level Software Interrupt Exception handler. */ 235 static void swi_exception_entry( )237 static void swi_exception_entry(void) 236 238 { 237 239 PROCESS_EXCEPTION(EXC_SWI); … … 239 241 240 242 /** Low-level Undefined Instruction Exception handler. */ 241 static void undef_instr_exception_entry( )243 static void undef_instr_exception_entry(void) 242 244 { 243 245 PROCESS_EXCEPTION(EXC_UNDEF_INSTR); … … 245 247 246 248 /** Low-level Fast Interrupt Exception handler. */ 247 static void fiq_exception_entry( )249 static void fiq_exception_entry(void) 248 250 { 249 251 PROCESS_EXCEPTION(EXC_FIQ); … … 251 253 252 254 /** Low-level Prefetch Abort Exception handler. */ 253 static void prefetch_abort_exception_entry( )255 static void prefetch_abort_exception_entry(void) 254 256 { 255 257 asm("sub lr, lr, #4"); … … 258 260 259 261 /** Low-level Data Abort Exception handler. */ 260 static void data_abort_exception_entry( )262 static void data_abort_exception_entry(void) 261 263 { 262 264 asm("sub lr, lr, #8"); … … 270 272 * would overwrite (and thus spoil) stack pointer. 271 273 */ 272 static void irq_exception_entry( )274 static void irq_exception_entry(void) 273 275 { 274 276 asm("sub lr, lr, #4");
Note:
See TracChangeset
for help on using the changeset viewer.