aboutsummaryrefslogtreecommitdiff
path: root/devices/ps2_keyboard.c
diff options
context:
space:
mode:
authoraqua <aqua@iserlohn-fortress.net>2022-11-01 21:18:17 +0200
committeraqua <aqua@iserlohn-fortress.net>2022-11-01 21:35:57 +0200
commit2f82430b488878d321276e6efb10c61042ca2930 (patch)
tree34455e48a90eb61f1d814ff2c18cb962c02f89a6 /devices/ps2_keyboard.c
parentAdd uppercase scancodes (diff)
downloadkernel-2f82430b488878d321276e6efb10c61042ca2930.tar.xz
Enable interrupts after enabling the PIC
Diffstat (limited to 'devices/ps2_keyboard.c')
-rw-r--r--devices/ps2_keyboard.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/devices/ps2_keyboard.c b/devices/ps2_keyboard.c
index e5af423..4ebcc65 100644
--- a/devices/ps2_keyboard.c
+++ b/devices/ps2_keyboard.c
@@ -1,4 +1,5 @@
#include "ps2_keyboard.h"
+#include "vga.h"
#include <stdint.h>
#include <stdio.h>
#include <sys/io.h>
@@ -50,6 +51,14 @@ ps2_keyboard_irq_handler()
case 0xb6: // right shift up
shift_case = 0;
return;
+
+ case 0x5b: // left meta
+ case 0x5c: // right meta
+ return;
+
+ case 0x58: // F12
+ vga_clear(VGA_COLOR_LIGHT_BLUE, VGA_COLOR_LIGHT_GREY);
+ return;
}
if (key >= 0x80) return;