From 204b345942356ff65dabecbf7bd94fb6806f4ce4 Mon Sep 17 00:00:00 2001 From: Nathan Giddings Date: Fri, 30 Dec 2022 17:14:37 -0600 Subject: [PATCH] Fixed mmgr.c --- src/mmgr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mmgr.c b/src/mmgr.c index 1c752b8..c23c2e5 100644 --- a/src/mmgr.c +++ b/src/mmgr.c @@ -3,6 +3,7 @@ #include "math.h" #include "platform/paging.h" #include "types/status.h" +#include "stdio.h" #include #include @@ -104,8 +105,7 @@ int find_free_region(int height) { if(page_map.cache[page_map.height - height - llog2(bitmap_word_size)]) { - unsig6], [test $host = i686-elf]) -ned long index = page_map.cache[page_map.height - height - llog2(bitmap_word_size)]; + unsigned long index = page_map.cache[page_map.height - height - llog2(bitmap_word_size)]; page_map.cache[page_map.height - height - llog2(bitmap_word_size)] = 0; return index; }