diff options
| author | EmulatedSeasons <89668582+EmulatedSeasons@users.noreply.github.com> | 2023-12-17 17:18:02 -0500 |
|---|---|---|
| committer | EmulatedSeasons <89668582+EmulatedSeasons@users.noreply.github.com> | 2023-12-17 17:18:02 -0500 |
| commit | d286be47997ecfc4038ded9442770d603ce53b30 (patch) | |
| tree | 697a58914befc58adbe7a7f27dfed049c9a6c5d2 /kernel/arch/i386 | |
| parent | a78033acc941fc4bcf6188f1d48fd8e012673fff (diff) | |
forgot what i did this commit it's been so long
Diffstat (limited to 'kernel/arch/i386')
| -rw-r--r-- | kernel/arch/i386/isr_handler.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/arch/i386/isr_handler.cpp b/kernel/arch/i386/isr_handler.cpp index a2fc23a..ba825dd 100644 --- a/kernel/arch/i386/isr_handler.cpp +++ b/kernel/arch/i386/isr_handler.cpp @@ -3,6 +3,7 @@ #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>
@@ -12,10 +13,9 @@ extern "C" void exception_handler(int e) { printf("Exception\n");
}
+#define PS2_DATA 0x60
extern "C" void ps2_handler() {
- printf("b");
- inb(0x60);
- printf("a");
+ keyboard_write(inb(PS2_DATA));
pic_send_eoi(1);
}
\ No newline at end of file |
