gems-kernel/source/THIRDPARTY/nanobyte_os/kernel/arch/i686/idt.asm
2024-06-03 11:16:15 -05:00

18 lines
No EOL
373 B
NASM

[bits 32]
; void __attribute__((cdecl)) i686_IDT_Load(IDTDescriptor* idtDescriptor);
global i686_IDT_Load
i686_IDT_Load:
; make new call frame
push ebp ; save old call frame
mov ebp, esp ; initialize new call frame
; load idt
mov eax, [ebp + 8]
lidt [eax]
; restore old call frame
mov esp, ebp
pop ebp
ret