Ignore:
File:
1 edited

Legend:

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

    r3a2f8aa r22a28a69  
    3737
    3838#include <arch/interrupt.h>
    39 #include <arch/types.h>
     39#include <typedefs.h>
    4040#include <proc/task.h>
    4141#include <proc/thread.h>
     
    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, 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.