diff options
| author | Aleksa Vuckovic <aleksa@vuckovic.cc> | 2023-02-25 07:26:22 +0100 |
|---|---|---|
| committer | Aleksa Vuckovic <aleksa@vuckovic.cc> | 2023-02-25 08:45:12 +0100 |
| commit | 5ba212fe7123d454414f64d42ec7ff0822458c13 (patch) | |
| tree | a82f8057cc57b6efb8ac19f9d01c2cc1aebc29c0 /kernel/src/devices/keyboard.c | |
| parent | 239900af293f192931391dc5579afab39a43e6c6 (diff) | |
ANSI C: // -> /* */
Diffstat (limited to 'kernel/src/devices/keyboard.c')
| -rw-r--r-- | kernel/src/devices/keyboard.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/kernel/src/devices/keyboard.c b/kernel/src/devices/keyboard.c index 67c2f19..d631aac 100644 --- a/kernel/src/devices/keyboard.c +++ b/kernel/src/devices/keyboard.c @@ -17,13 +17,16 @@ stdbuff *keyboard_buffer; void init_keyboard() { - // outb(KEYBOARD_CMD_PORT, 0xF3); - // io_wait(); - // outb(KEYBOARD_DATA_PORT, 0x00); - // io_wait(); - // while (!(inb(KEYBOARD_STATUS_PORT) & 1)) {} - // if (inb(KEYBOARD_DATA_PORT) == 0xFA) - // printf("[keyboard init]\n"); + /* + outb(KEYBOARD_CMD_PORT, 0xF3); + io_wait(); + outb(KEYBOARD_DATA_PORT, 0x00); + io_wait(); + while (!(inb(KEYBOARD_STATUS_PORT) & 1)) + ; + if (inb(KEYBOARD_DATA_PORT) == 0xFA) + printf("[keyboard init]\n"); + */ } void keyboard_handler() |
