implement basic multitasking

This commit is contained in:
2025-03-31 14:51:33 +03:00
parent 10eb4687f0
commit 9381b4cdb7
6 changed files with 243 additions and 1 deletions
+7 -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 bin/disk.o bin/pic.o bin/pit.o bin/keyboard.o bin/paging.o bin/fat.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 bin/pic.o bin/pit.o bin/keyboard.o bin/paging.o bin/fat.o bin/task.o bin/switch.o
# Define the compiler and assembler
CC = gcc -D__is_katauos
@@ -96,6 +96,12 @@ bin/paging.o: src/paging.c
bin/fat.o: src/fat.c
$(CC) $(CFLAGS) -c $< -o $@
bin/switch.o: src/switch.asm
$(AS) $(ASFLAGS) $< -o $@
bin/task.o: src/task.c
$(CC) $(CFLAGS) -c $< -o $@
clean:
rm -rf bin/
rm -f $(OUTPUT)