summaryrefslogtreecommitdiff
path: root/src/kernel/mem/alloc.h
diff options
context:
space:
mode:
authordzwdz2021-09-19 21:39:06 +0200
committerdzwdz2021-09-19 21:39:06 +0200
commit9a93ed59ce8e9311dd29e148048c6c20ba54388c (patch)
tree90236cb828af97282f99efd22946752242bdad59 /src/kernel/mem/alloc.h
parent388151741be9622a80a8161dd2cbea1be8bd18a2 (diff)
show the malloc balance on halt; remove a bad kfree() call
the kfree() call was freeing a buffer which was inside a process struct
Diffstat (limited to 'src/kernel/mem/alloc.h')
-rw-r--r--src/kernel/mem/alloc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/kernel/mem/alloc.h b/src/kernel/mem/alloc.h
index 571b289..4f45520 100644
--- a/src/kernel/mem/alloc.h
+++ b/src/kernel/mem/alloc.h
@@ -4,6 +4,7 @@
#include <stddef.h>
void mem_init(struct kmain_info *);
+void mem_debugprint(void);
// allocates `pages` consecutive pages
void *page_alloc(size_t pages);