From fd73441fe4950c683699fe38ad59e4541b75e5a7 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Fri, 24 Jul 2020 15:21:36 +0200 Subject: Bug hunting for file reading (ext2 idp recursion) --- src/drivers/interrupts.c | 5 +++-- src/drivers/keyboard.c | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'src/drivers') diff --git a/src/drivers/interrupts.c b/src/drivers/interrupts.c index edf5837..d65490c 100644 --- a/src/drivers/interrupts.c +++ b/src/drivers/interrupts.c @@ -4,6 +4,7 @@ #include #include #include +#include #include /** @@ -29,8 +30,8 @@ void idt_install() idt_ptr.limit = (sizeof(struct idt_entry) * 256) - 1; idt_ptr.base = &idt; - // Clear IDT by setting memory cells to 0 // TODO - //memset(&idt, 0, sizeof(struct idt_entry) * 256); + // Clear IDT by setting memory cells to 0 + memset(&idt, 0, sizeof(struct idt_entry) * 256); __asm__("lidt %0" : : "m"(idt_ptr)); } diff --git a/src/drivers/keyboard.c b/src/drivers/keyboard.c index 3bef356..558563e 100644 --- a/src/drivers/keyboard.c +++ b/src/drivers/keyboard.c @@ -9,7 +9,7 @@ u8 scancode; void keyboard_handler() { scancode = inb(0x60); - serial_print("KEY\n"); + //serial_print("KEY\n"); //struct keyboard_event *event = malloc(sizeof(struct keyboard_event)); //event->scancode = scancode; //event_trigger(MAP_KEYBOARD, (u8 *)event); -- cgit v1.2.3