1
0
Fork 0

fix/kernel: Fixed kfree to be more safe

This commit is contained in:
Kevin Alavik 2025-05-26 21:22:46 +02:00
parent d0e4149de5
commit b41cc11e39
No known key found for this signature in database
GPG key ID: 47AAEA397DB76AD0
4 changed files with 81 additions and 36 deletions

View file

@ -51,12 +51,13 @@ else
endif
CPPFLAGS := -I../external -I$(SRCDIR) -MMD -MP -DLIMINE_API_REVISION=3
CFLAGS += -std=c99
CFLAGS += -std=c99
IMPLICIT_SRCS :=
ifneq ($(MAKECMDGOALS),menuconfig)
ifeq ($(CONFIG_KERNEL_HEAP_FF),y)
IMPLICIT_SRCS += src/mm/heap/ff.c
CFLAGS += -DFF_POOL_SIZE=$(CONFIG_KERNEL_HEAP_POOL_SIZE)
else
$(error Error: No heap algorithm was defined. Please run "make menuconfig" and select one.)
endif