Added IDT driver
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
OBJS = multiboot.asm.o kernel_loader.asm.o ports.asm.o gdt.asm.o
|
||||
OBJS = multiboot.asm.o kernel_loader.asm.o ports.asm.o gdt.asm.o idt.asm.o
|
||||
|
||||
ASM = nasm
|
||||
ASMFLAGS = -f elf
|
||||
|
||||
7
kernel/cpu/idt.asm
Normal file
7
kernel/cpu/idt.asm
Normal file
@@ -0,0 +1,7 @@
|
||||
global idt_flush ; for drivers/idt.c
|
||||
|
||||
section .text
|
||||
idt_flush:
|
||||
mov eax, [esp+4] ; Retrieve idt_ptr_t*
|
||||
lidt [eax]
|
||||
ret
|
||||
Reference in New Issue
Block a user