Ignore:
File:
1 edited

Legend:

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

    r3a2f8aa r9ac2013  
    3737
    3838#include <arch/interrupt.h>
    39 #include <arch/types.h>
     39#include <print.h>
     40#include <typedefs.h>
    4041#include <proc/task.h>
    4142#include <proc/thread.h>
     
    4445#include <stacktrace.h>
    4546
    46 typedef void (* iroutine)(int n, istate_t *istate);
     47typedef void (* iroutine_t)(unsigned int, istate_t *);
    4748
    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);
     49typedef struct {
     50        const char *name;
     51        bool hot;
     52        iroutine_t handler;
     53        uint64_t cycles;
     54        uint64_t count;
     55} exc_table_t;
    5256
    53 extern void irq_initialize_arch(irq_t *irq);
     57IRQ_SPINLOCK_EXTERN(exctbl_lock);
     58extern exc_table_t exc_table[];
     59
     60extern void fault_if_from_uspace(istate_t *, const char *, ...)
     61    PRINTF_ATTRIBUTE(2, 3);
     62extern iroutine_t exc_register(unsigned int, const char *, bool, iroutine_t);
     63extern void exc_dispatch(unsigned int, istate_t *);
     64extern void exc_init(void);
     65
     66extern void irq_initialize_arch(irq_t *);
     67
     68extern void istate_decode(istate_t *);
    5469
    5570#endif
Note: See TracChangeset for help on using the changeset viewer.