diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2021-02-16 22:22:38 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2021-02-16 22:22:38 +0200 |
commit | a00456084240e11e29fc5eaf9c34227491eaf1dc (patch) | |
tree | d1987768f9f99616883e865b09d720a221427160 /src/irq | |
parent | Add grub build instructions (diff) | |
download | kernel.cpp-a00456084240e11e29fc5eaf9c34227491eaf1dc.tar.xz |
Add IDT
Diffstat (limited to 'src/irq')
-rw-r--r-- | src/irq/kirq.cc | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/irq/kirq.cc b/src/irq/kirq.cc new file mode 100644 index 0000000..acd57d4 --- /dev/null +++ b/src/irq/kirq.cc @@ -0,0 +1,21 @@ +#include <stdlib.h> +#include "../idt.h" +#include "ports.h" + +template <> +void kirq<0x0>(interrupt_frame*) { + printk("Interrupt 0x0\n"); + + // send end of interrupt + pic1_t pic1; + pic1.write(0x20); +} + +template <> +void kirq<0x1>(interrupt_frame*) { + printk("Interrupt 0x0\n"); + + // send end of interrupt + pic1_t pic1; + pic1.write(0x20); +} |