X-Git-Url: http://git.dujemihanovic.xyz/%7B%7B?a=blobdiff_plain;f=include%2Farch%2Fx86%2Firq%2Finterrupt.h;h=f43b28c494e1fbb4e73e7106e6158cb74e65c4c8;hb=63b19831bd7dd06e3c6fd8b9fe34e62f6697741e;hp=fbecdd8c4cf086caff3737ebb91953e5b0f0b61d;hpb=1bd5762d408e67c3bbe250db3decc809c98d7995;p=nameless-os.git diff --git a/include/arch/x86/irq/interrupt.h b/include/arch/x86/irq/interrupt.h index fbecdd8..f43b28c 100644 --- a/include/arch/x86/irq/interrupt.h +++ b/include/arch/x86/irq/interrupt.h @@ -1,6 +1,22 @@ #ifndef X86_INTERRUPT_H #define X86_INTERRUPT_H -extern int register_interrupt(int irq, int (*handler)(void)); +struct interrupt_frame { + int interrupt; + int edi; + int esi; + int ebp; + int esp; /* before pushad */ + int ebx; + int edx; + int ecx; + int eax; + int err_code; + int eip; + int cs; + int eflags; +}; + +extern int register_interrupt(int irq, int (*handler)(struct interrupt_frame *)); #endif