mm: implement heap with liballoc, might review later

This commit is contained in:
2025-06-06 00:36:22 +03:00
parent d1ac41deeb
commit 541bc7172f
6 changed files with 786 additions and 4 deletions
+8 -1
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/page_alloc.o bin/page_tables.o \
bin/fat.o bin/task.o bin/switch.o bin/sys_exit.o bin/gdt.o bin/isr-asm.o
bin/fat.o bin/task.o bin/switch.o bin/sys_exit.o bin/gdt.o bin/isr-asm.o bin/kheap.o bin/liballoc.o
# Define the compiler and assembler
#CC = i686-elf-gcc -D__is_katauos
@@ -124,6 +124,13 @@ bin/gdt.o: src/kernel/gdt.c
bin/isr-asm.o: src/kernel/isr.asm
$(AS) $(ASFLAGS) $< -o $@
bin/kheap.o: src/mm/kheap.c
$(CC) $(CFLAGS) -c $< -o $@
bin/liballoc.o: src/mm/liballoc.c
$(CC) $(CFLAGS) -c $< -o $@
clean:
rm -rf bin/
rm -f $(OUTPUT)