xref: /kvm-unit-tests/lib/x86/isr.h (revision 57b4317dc6758dd8b478609b1312685795654e01)
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 void handle_external_interrupt(int vector);
14 #endif
15