Changes in kernel/generic/include/interrupt.h [3a2f8aa:9ac2013] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/interrupt.h
r3a2f8aa r9ac2013 37 37 38 38 #include <arch/interrupt.h> 39 #include <arch/types.h> 39 #include <print.h> 40 #include <typedefs.h> 40 41 #include <proc/task.h> 41 42 #include <proc/thread.h> … … 44 45 #include <stacktrace.h> 45 46 46 typedef void (* iroutine )(int n, istate_t *istate);47 typedef void (* iroutine_t)(unsigned int, istate_t *); 47 48 48 extern void fault_if_from_uspace(istate_t *istate, char *fmt, ...); 49 extern iroutine exc_register(int n, const char *name, iroutine f); 50 extern void exc_dispatch(int n, istate_t *t); 51 void exc_init(void); 49 typedef struct { 50 const char *name; 51 bool hot; 52 iroutine_t handler; 53 uint64_t cycles; 54 uint64_t count; 55 } exc_table_t; 52 56 53 extern void irq_initialize_arch(irq_t *irq); 57 IRQ_SPINLOCK_EXTERN(exctbl_lock); 58 extern exc_table_t exc_table[]; 59 60 extern void fault_if_from_uspace(istate_t *, const char *, ...) 61 PRINTF_ATTRIBUTE(2, 3); 62 extern iroutine_t exc_register(unsigned int, const char *, bool, iroutine_t); 63 extern void exc_dispatch(unsigned int, istate_t *); 64 extern void exc_init(void); 65 66 extern void irq_initialize_arch(irq_t *); 67 68 extern void istate_decode(istate_t *); 54 69 55 70 #endif
Note:
See TracChangeset
for help on using the changeset viewer.