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