xref: /kvm-unit-tests/lib/x86/isr.h (revision c865f654ffe4c5955038aaf74f702ba62f3eb014)
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