blob: c8ded7c272c3820e26e0160a5fdb97ed10ed755e [file] [log] [blame]
swissChilid8137922021-02-17 15:34:07 -08001#include "kint.h"
2#include "vga.h"
3
4struct registers
5{
6 uint ds;
7 uint edi, esi, ebp, esp, ebx, edx, ecx, eax;
8 uint interrupt_number, error_code;
9 uint eip, cs, eflags, useresp, ss;
10};
11
12void isr_handler(struct registers regs)
13{
swissChili0b35bf22021-02-18 12:49:40 -080014 vga_write("Interrupt triggered! ");
15 vga_putx(regs.interrupt_number);
16 vga_write("\n");
swissChilid8137922021-02-17 15:34:07 -080017}