add gdt setup

This commit is contained in:
2025-03-14 23:59:13 +03:00
parent 294111bf41
commit 0ea8fc59ef
4 changed files with 96 additions and 1 deletions
+4 -1
View File
@@ -1,5 +1,5 @@
# Define the object files
OBJS = bin/boot.o bin/kernel.o bin/idt.o bin/isr.o bin/screen.o bin/utils.o bin/string.o bin/stdio.o
OBJS = bin/boot.o bin/kernel.o bin/idt.o bin/isr.o bin/screen.o bin/utils.o bin/string.o bin/stdio.o bin/gdt.o
# Define the compiler and assembler
CC = gcc -D__is_katauos
@@ -45,6 +45,9 @@ bin/string.o: src/string.c
bin/stdio.o: src/stdio.c
$(CC) $(CFLAGS) -c $< -o $@
bin/gdt.o: src/gdt.c
$(CC) $(CFLAGS) -c $< -o $@
clean:
rm -rf bin/
rm -f $(OUTPUT)