- Timestamp:
- 2005-12-26T01:05:47Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1120276
- Parents:
- 5b1ced0
- Location:
- generic
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/include/interrupt.h
r5b1ced0 r39494010 31 31 32 32 #include <arch/interrupt.h> 33 #include <typedefs.h> 33 34 34 35 #ifndef IVT_ITEMS 35 # 36 # define IVT_ITEMS 0 36 37 #endif 37 38 38 typedef void (* iroutine)(int n, void *stack); 39 #ifndef IVT_FIRST 40 # define IVT_FIRST 0 41 #endif 39 42 40 43 extern iroutine exc_register(int n, const char *name, iroutine f); -
generic/include/typedefs.h
r5b1ced0 r39494010 87 87 typedef struct cmd_info cmd_info_t; 88 88 89 typedef void (* iroutine)(int n, void *stack); 90 89 91 #endif -
generic/src/interrupt/interrupt.c
r5b1ced0 r39494010 75 75 ASSERT(n < IVT_ITEMS); 76 76 77 exc_table[n].f(n , stack);77 exc_table[n].f(n + IVT_FIRST, stack); 78 78 } 79 79 … … 84 84 } 85 85 86 /** KConsole cmd - print all exceptions */86 /** kconsole cmd - print all exceptions */ 87 87 static int exc_print_cmd(cmd_arg_t *argv) 88 88 { … … 96 96 if (!symbol) 97 97 symbol = "not found"; 98 printf("%d %s 0x%p(%s)\n", i,exc_table[i].name,98 printf("%d %s 0x%p(%s)\n", i + IVT_FIRST, exc_table[i].name, 99 99 exc_table[i].f,symbol); 100 100 if (!((i+1) % 20)) {
Note:
See TracChangeset
for help on using the changeset viewer.