summaryrefslogtreecommitdiff
path: root/kernel/lib/kalloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/lib/kalloc.c')
-rw-r--r--kernel/lib/kalloc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/lib/kalloc.c b/kernel/lib/kalloc.c
index 02e9457..8dca46b 100644
--- a/kernel/lib/kalloc.c
+++ b/kernel/lib/kalloc.c
@@ -1,3 +1,4 @@
+#include "lib/kio.h"
#include <lib.h>
#include <comus/memory.h>
@@ -34,7 +35,8 @@ static struct page_header *get_header(void *ptr)
static void *alloc_new(size_t size)
{
- size_t pages = ((size + header_len + PAGE_SIZE - 1) / PAGE_SIZE) * PAGE_SIZE;
+ size_t pages =
+ ((size + header_len + PAGE_SIZE - 1) / PAGE_SIZE) * PAGE_SIZE;
void *addr = kalloc_pages(pages);
void *mem = (char *)addr + header_len;