some test things

This commit is contained in:
2025-05-10 15:48:06 +03:00
parent 7e97987e95
commit b836a37264
5 changed files with 379 additions and 84 deletions
+5 -2
View File
@@ -2,7 +2,7 @@
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 bin/pic.o bin/pit.o \
bin/keyboard.o bin/paging.o bin/heap.o bin/page_alloc.o bin/page_tables.o \
bin/fat.o bin/task.o bin/switch.o bin/sys_exit.o
bin/fat.o bin/task.o bin/switch.o bin/sys_exit.o bin/gdt.o
# Define the compiler and assembler
CC = gcc -D__is_katauos
@@ -48,7 +48,7 @@ image:
sudo losetup -D
test:
qemu-system-i386 -drive file=boot.iso,media=disk,format=raw -m 512M -d int
qemu-system-i386 -drive file=boot.iso,media=disk,format=raw -m 4096M -d int
#qemu-system-i386 -s -S -kernel myos.bin
debug:
@@ -120,6 +120,9 @@ bin/task.o: src/tasking/task.c
bin/sys_exit.o: src/tasking/sys_exit.asm
$(AS) $(ASFLAGS) $< -o $@
bin/gdt.o: src/kernel/gdt.c
$(CC) $(CFLAGS) -c $< -o $@
clean:
rm -rf bin/
rm -f $(OUTPUT)