commit | d8137921b3319a2b7e215920e37f46919e66964b | [log] [tgz] |
---|---|---|
author | swissChili <swisschili@fastmail.com> | Wed Feb 17 15:34:07 2021 -0800 |
committer | swissChili <swisschili@fastmail.com> | Wed Feb 17 15:34:07 2021 -0800 |
tree | 91bcfcf80f21b0aaec407f0e86e5e6ff02255e35 |
Initial commit
diff --git a/src/interrupts.c b/src/interrupts.c new file mode 100644 index 0000000..615f367 --- /dev/null +++ b/src/interrupts.c
@@ -0,0 +1,15 @@ +#include "kint.h" +#include "vga.h" + +struct registers +{ + uint ds; + uint edi, esi, ebp, esp, ebx, edx, ecx, eax; + uint interrupt_number, error_code; + uint eip, cs, eflags, useresp, ss; +}; + +void isr_handler(struct registers regs) +{ + vga_write("Interrupt triggered\n"); +}