isr.h 285 B

1234567891011121314
  1. #ifndef __ISR_TEST__
  2. #define __ISR_TEST__
  3. typedef struct {
  4. ulong regs[sizeof(ulong)*2];
  5. ulong func;
  6. ulong rip;
  7. ulong cs;
  8. ulong rflags;
  9. } isr_regs_t;
  10. void handle_irq(unsigned vec, void (*func)(isr_regs_t *regs));
  11. void handle_external_interrupt(int vector);
  12. #endif