Added IDT driver

This commit is contained in:
ice-bit
2019-07-05 12:32:04 +02:00
parent 14ee39a515
commit 1aa6963e84
7 changed files with 239 additions and 16 deletions

View File

@@ -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
View 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