Fixed mmgr.c
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
#include "math.h"
|
#include "math.h"
|
||||||
#include "platform/paging.h"
|
#include "platform/paging.h"
|
||||||
#include "types/status.h"
|
#include "types/status.h"
|
||||||
|
#include "stdio.h"
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
||||||
@@ -104,8 +105,7 @@ int find_free_region(int height)
|
|||||||
{
|
{
|
||||||
if(page_map.cache[page_map.height - height - llog2(bitmap_word_size)])
|
if(page_map.cache[page_map.height - height - llog2(bitmap_word_size)])
|
||||||
{
|
{
|
||||||
unsig6], [test $host = i686-elf])
|
unsigned long index = page_map.cache[page_map.height - height - llog2(bitmap_word_size)];
|
||||||
ned 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;
|
page_map.cache[page_map.height - height - llog2(bitmap_word_size)] = 0;
|
||||||
return index;
|
return index;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user