gems-kernel/source/THIRDPARTY/nanobyte_os/kernel/arch/i686/idt.asm

18 lines
373 B
NASM
Raw Normal View History

[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