From a18da25e7355979d0f26cfd39dc0032172e8b135 Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Thu, 22 Feb 2024 17:28:08 +0100 Subject: Kernel: Fix undefined behavior and cleanup functions. The int_syscall caused crashes for higher level of optimizations. To fix this I rewrote the function in assembly as I deemed it to be simpler. --- kernel/cpu/idt.c | 1 - 1 file changed, 1 deletion(-) (limited to 'kernel/cpu/idt.c') diff --git a/kernel/cpu/idt.c b/kernel/cpu/idt.c index ec7ca63..805eb20 100644 --- a/kernel/cpu/idt.c +++ b/kernel/cpu/idt.c @@ -249,7 +249,6 @@ void install_handler(void (*handler_function)(), u16 type_attribute, u8 entry) { } void idt_init(void) { - // list_of_handlers = kcalloc(sizeof(void *), 128); memset(list_of_handlers, 0, sizeof(void *) * 256); install_handler(page_fault, INT_32_INTERRUPT_GATE(0x0), 0xE); -- cgit v1.2.3