Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/interrupt.h

    rd99c1d2 r22a28a69  
    4444#include <stacktrace.h>
    4545
    46 typedef void (* iroutine)(int n, istate_t *istate);
     46typedef void (* iroutine_t)(unsigned int, istate_t *);
    4747
    48 extern void fault_if_from_uspace(istate_t *istate, const 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);
     48typedef struct {
     49        const char *name;
     50        bool hot;
     51        iroutine_t handler;
     52        uint64_t cycles;
     53        uint64_t count;
     54} exc_table_t;
    5255
    53 extern void irq_initialize_arch(irq_t *irq);
     56IRQ_SPINLOCK_EXTERN(exctbl_lock);
     57extern exc_table_t exc_table[];
     58
     59extern void fault_if_from_uspace(istate_t *, const char *, ...);
     60extern iroutine_t exc_register(unsigned int, const char *, bool, iroutine_t);
     61extern void exc_dispatch(unsigned int, istate_t *);
     62extern void exc_init(void);
     63
     64extern void irq_initialize_arch(irq_t *);
     65
     66extern void istate_decode(istate_t *);
    5467
    5568#endif
Note: See TracChangeset for help on using the changeset viewer.