diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2021-04-11 20:53:06 +0200 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2021-04-11 20:53:06 +0200 |
| commit | 6edeba8fe208fb019aec00fdc72b97407a8078d3 (patch) | |
| tree | 965376727a7519fd20f73a946c01157151098ec6 /src/int/8042.c | |
| parent | 3212145e94e0c68a5da96306545c116292dfbe85 (diff) | |
Enable paging
Diffstat (limited to 'src/int/8042.c')
| -rw-r--r-- | src/int/8042.c | 16 |
1 files changed, 16 insertions, 0 deletions
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]); +} |
