diff options
author | Marvin Borner | 2020-07-24 15:21:36 +0200 |
---|---|---|
committer | Marvin Borner | 2020-07-24 15:21:36 +0200 |
commit | fd73441fe4950c683699fe38ad59e4541b75e5a7 (patch) | |
tree | 7f549911388fd3881e52bbf2139aed8170c97481 /src/drivers | |
parent | 43183fe6b259005174a424828b2fbb06bfeb4a90 (diff) |
Bug hunting for file reading (ext2 idp recursion)
Diffstat (limited to 'src/drivers')
-rw-r--r-- | src/drivers/interrupts.c | 5 | ||||
-rw-r--r-- | src/drivers/keyboard.c | 2 |
2 files changed, 4 insertions, 3 deletions
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 <cpu.h> #include <def.h> #include <interrupts.h> +#include <mem.h> #include <serial.h> /** @@ -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); |