From 8e403358b5a7ec3a5933257a95aa528c7f503ba0 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sun, 14 Jul 2024 16:39:43 +0200 Subject: kernel/malloc: clean up the code a little bit The bitmap functions now accept page addresses so I don't have to handle raw bitmap indexes, which was kinda complex. kmalloc_sanity is now not visible to other code as it wasn't really that useful in the first place. --- src/kernel/malloc.h | 1 - 1 file changed, 1 deletion(-) (limited to 'src/kernel/malloc.h') diff --git a/src/kernel/malloc.h b/src/kernel/malloc.h index 3469f5f..efbd9c8 100644 --- a/src/kernel/malloc.h +++ b/src/kernel/malloc.h @@ -20,7 +20,6 @@ void *page_zalloc(size_t pages); // frees `pages` consecutive pages starting from *first void page_free(void *first, size_t pages); -void kmalloc_sanity(const void *addr); void *kmalloc(size_t len, const char *desc); void kfree(void *ptr); -- cgit v1.2.3