aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/arch/x86/isr_handler.cpp
diff options
context:
space:
mode:
authorEmulatedSeasons <89668582+EmulatedSeasons@users.noreply.github.com>2024-05-03 03:39:47 -0400
committerEmulatedSeasons <89668582+EmulatedSeasons@users.noreply.github.com>2024-05-03 03:39:47 -0400
commit2d59766eb330b9d15a9bcbcd7e1695809fc099c5 (patch)
treeb5abb4d0c0c488cbb44c2c0a54d59b44fe1fc462 /kernel/arch/x86/isr_handler.cpp
parent2461cd921d45e3d75245568bc59831c1f0a43331 (diff)
renamed i386 to x86
Diffstat (limited to 'kernel/arch/x86/isr_handler.cpp')
-rw-r--r--kernel/arch/x86/isr_handler.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/kernel/arch/x86/isr_handler.cpp b/kernel/arch/x86/isr_handler.cpp
new file mode 100644
index 0000000..ac8fb49
--- /dev/null
+++ b/kernel/arch/x86/isr_handler.cpp
@@ -0,0 +1,21 @@
+#include <stdint.h>
+#include <stdio.h>
+#include <stddef.h>
+#include <arch/i386/tmtty.h>
+#include <arch/i386/ps2_controller.h>
+#include <dev/ps2kbd.h>
+#include <arch/i386/pic.h>
+#include <io.h>
+
+extern "C" void exception_handler(int e) {
+ //unsigned char errorcode[2]{((unsigned char) e) + 48};
+ //terminal_initialize();
+ printf("Exception %x\n", e);
+}
+
+#define PS2_DATA 0x60
+extern "C" void ps2_handler() {
+ keyboard_write(inb(PS2_DATA));
+
+ pic_send_eoi(1);
+} \ No newline at end of file