fix: interrupt handler function uses an array
fix: gdt calls cli asm instruction at init
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user