From 6edeba8fe208fb019aec00fdc72b97407a8078d3 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Sun, 11 Apr 2021 20:53:06 +0200 Subject: Enable paging --- src/int/8042.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/int/8042.c (limited to 'src/int/8042.c') diff --git a/src/int/8042.c b/src/int/8042.c new file mode 100644 index 0000000..f0a987f --- /dev/null +++ b/src/int/8042.c @@ -0,0 +1,16 @@ +#include "8042.h" +#include "utils/framebuffer.h" +#include "utils/asm.h" + +DEFINE_AZERTY; + +void _8042_keypress(){ + u8 data; + do { + inb(0x64,data); + } + while((data&0x01) == 0); + inb(0x60,data); + if(data<0x80) + putchar(AZERTY[data]); +} -- cgit v1.2.3