gdt: remove anything left from C implementation of GDT

This commit is contained in:
2025-03-18 16:24:11 +03:00
parent 086bac07ed
commit 22c7380c8d
8 changed files with 52 additions and 112 deletions
+4 -7
View File
@@ -1,16 +1,16 @@
# 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 bin/gdt.o bin/disk.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/disk.o
# Define the compiler and assembler
CC = gcc -D__is_katauos
AS = nasm
# Define the compiler flags
CFLAGS = -std=gnu99 -ffreestanding -O2 -Wall -Wextra -m32
CFLAGS = -std=gnu99 -ffreestanding -O0 -Wall -Wextra -m32 -g
ASFLAGS = -f elf32
# Define the linker flags
LDFLAGS = -ffreestanding -O2 -nostdlib -m32
LDFLAGS = -ffreestanding -O0 -nostdlib -m32 -g
LDSCRIPT = link.ld
# Define the output file
@@ -23,7 +23,7 @@ image:
grub-mkrescue -o boot.iso grubshit
test:
qemu-system-i386 -drive file=boot.iso,media=disk,format=raw -m 512M
qemu-system-i386 -drive file=boot.iso,media=disk,format=raw -m 512M -d int
test-bochs:
bochs -f bochsrc
@@ -55,9 +55,6 @@ 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 $@
bin/disk.o: src/disk.c
$(CC) $(CFLAGS) -c $< -o $@