- Timestamp:
- 2006-03-13T20:08:16Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 631ca4d
- Parents:
- 45d6add
- Location:
- generic
- Files:
-
- 3 edited
-
include/interrupt.h (modified) (1 diff)
-
include/typedefs.h (modified) (1 diff)
-
src/interrupt/interrupt.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
generic/include/interrupt.h
r45d6add r25d7709 42 42 43 43 extern iroutine exc_register(int n, const char *name, iroutine f); 44 extern void exc_dispatch(int n, void *stack);44 extern void exc_dispatch(int n, istate_t *t); 45 45 void exc_init(void); 46 46 -
generic/include/typedefs.h
r45d6add r25d7709 83 83 typedef struct cmd_info cmd_info_t; 84 84 85 typedef void (* iroutine)(int n, void *stack); 85 typedef struct istate istate_t; 86 typedef void (* iroutine)(int n, istate_t *istate); 86 87 87 88 typedef struct hash_table hash_table_t; -
generic/src/interrupt/interrupt.c
r45d6add r25d7709 72 72 * CPU is interrupts_disable()'d. 73 73 */ 74 void exc_dispatch(int n, void *stack)74 void exc_dispatch(int n, istate_t *istate) 75 75 { 76 76 ASSERT(n < IVT_ITEMS); 77 77 78 exc_table[n].f(n + IVT_FIRST, stack);78 exc_table[n].f(n + IVT_FIRST, istate); 79 79 } 80 80 81 81 /** Default 'null' exception handler */ 82 static void exc_undef(int n, void *stack)82 static void exc_undef(int n, istate_t *istate) 83 83 { 84 84 panic("Unhandled exception %d.", n); … … 127 127 128 128 for (i=0;i < IVT_ITEMS; i++) 129 exc_register(i, "undef", exc_undef);129 exc_register(i, "undef", (iroutine) exc_undef); 130 130 131 131 cmd_initialize(&exc_info);
Note:
See TracChangeset
for help on using the changeset viewer.
