summaryrefslogtreecommitdiff
path: root/src/kernel.asm
diff options
context:
space:
mode:
authorCarlos Maiolino <[email protected]>2025-09-14 15:11:20 +0200
committerCarlos Maiolino <[email protected]>2025-09-14 15:11:20 +0200
commit9c7a059f64c86e5026cbbc5c6ae2f48be0f56c0c (patch)
tree752a262b102bb7a40e0296e06e7aa51ec14b1e16 /src/kernel.asm
parent364b023b2c50a7e810bf4f975150fc50c179e135 (diff)
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 <[email protected]>
Diffstat (limited to 'src/kernel.asm')
-rw-r--r--src/kernel.asm2
1 files changed, 0 insertions, 2 deletions
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 $