xref: /kvm-unit-tests/lib/x86/isr.h (revision da49e2919f6b7e14af756e781105acaabd30f7ca)
1 #ifndef _X86_ISR_H_
2 #define _X86_ISR_H_
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