summaryrefslogtreecommitdiff
path: root/kernel/src/mem/heap.c
diff options
context:
space:
mode:
authorAleksa Vuckovic <aleksav013@gmail.com>2022-11-26 00:22:10 +0100
committerAleksa Vuckovic <aleksav013@gmail.com>2022-11-27 01:04:18 +0100
commitd43a3388a976a74ae109c5b8b5a31f82a16b45db (patch)
tree51880414ee600ddfb3c7e3486c3d74beced36bfe /kernel/src/mem/heap.c
parent5d56d1a5b4d52702eb4e4ea6f05e4b6eebf41ca8 (diff)
fixing issues
1) main.c: order of init (multiboot.c must be after heap & paging because it uses heap to allocate pages for framebuffer) 2) paging.c: zeroing new pages allocated via heap 3) multiboot2.c: invalid pointer arithmetic 4) libk/string.c: check for null pointers in memcpy 5) paging: only page_lvl2 should have FLAG_HUGE 6) keyboard.c: kfree(print_buff)
Diffstat (limited to 'kernel/src/mem/heap.c')
-rw-r--r--kernel/src/mem/heap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/src/mem/heap.c b/kernel/src/mem/heap.c
index e37e003..539328c 100644
--- a/kernel/src/mem/heap.c
+++ b/kernel/src/mem/heap.c
@@ -3,6 +3,7 @@
#include <libk/math.h>
#include <paging.h>
+#include <libk/serial_stdio.h>
#include <libk/stdio.h>
kheap_t main_kheap;