From 0e0e5cf154855bdd47c24eddc75f0fb5734a2934 Mon Sep 17 00:00:00 2001 From: antifallobst Date: Wed, 8 Mar 2023 19:48:23 +0100 Subject: [PATCH] fix (IDT): fixed idt loading bug, that was caused by using a wrong calling convention --- kernel/src/platform/x86/interrupts.asm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/src/platform/x86/interrupts.asm b/kernel/src/platform/x86/interrupts.asm index 51954e0..f80de41 100644 --- a/kernel/src/platform/x86/interrupts.asm +++ b/kernel/src/platform/x86/interrupts.asm @@ -23,7 +23,7 @@ extern interrupts_handle extern g_kernel_page_map idt_load: - lidt [rax] + lidt [rdi] ret GLOBAL idt_load