From 9c7a059f64c86e5026cbbc5c6ae2f48be0f56c0c Mon Sep 17 00:00:00 2001 From: Carlos Maiolino Date: Sun, 14 Sep 2025 15:11:20 +0200 Subject: Enable interrupts only after IDT is set So far we've been playing a dangerous game... We enabled interrupts before we actually had the interrupt descriptor table setup. Fix this so we prevent IRQs to fire before the table is initialized and attempt to run garbage instead of code Signed-off-by: Carlos Maiolino --- src/kernel.asm | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/kernel.asm') diff --git a/src/kernel.asm b/src/kernel.asm index bd22761..47f5f71 100644 --- a/src/kernel.asm +++ b/src/kernel.asm @@ -35,8 +35,6 @@ _start: mov al, 00000001b ; Put the PIC in x86 mode out 0x21, al - sti - ; Jump to C code call start_kernel jmp $ -- cgit v1.2.3