fix: interrupt handler function uses an array

fix: gdt calls cli asm instruction at init
This commit is contained in:
2024-10-08 10:56:15 +02:00
parent 14758ff4ea
commit d348ac109e
2 changed files with 36 additions and 63 deletions

View File

@ -4,6 +4,7 @@
.global set_gdt
set_gdt:
cli // disable all interrupts
mov eax, [esp+4] // 1st parameter : pointer to the IDT
lgdt [eax]
mov ax, 0x10 // 0x10 is the offset in the GDT to our data segment