diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2021-02-28 22:39:25 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2021-02-28 22:39:25 +0200 |
commit | ae4265ea5d77b68757af39d73fe47df1a3563b42 (patch) | |
tree | 7282e3d43c471b195bb5a4742ed911c7b7626dcb /src/kernel.cc | |
parent | Fix interrupts causing exception 0xd (diff) | |
download | kernel.cpp-ae4265ea5d77b68757af39d73fe47df1a3563b42.tar.xz |
Add keyboard driver
Diffstat (limited to 'src/kernel.cc')
-rw-r--r-- | src/kernel.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/kernel.cc b/src/kernel.cc index 6bfb021..ff8e6bd 100644 --- a/src/kernel.cc +++ b/src/kernel.cc @@ -15,6 +15,8 @@ #include "idt.h" #include "serial.h" +#include "keyboard.h" + #include "hardware.h" typedef void (*constructor)(); @@ -48,6 +50,10 @@ void kernel_main([[maybe_unused]] uint32_t mb_magic, [[maybe_unused]] uint32_t m GDT gdt; IDT idt{gdt.codeDescriptor()}; + Keyboard kb; + + idt.enable(); + while (true) asm volatile("hlt"); } } // extern "C" |