58217f5900
WOO HOO!
18 lines
No EOL
373 B
NASM
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 |