Fix hippo.allocate_page()
This commit is contained in:
parent
b0e59b3e26
commit
7515ebdf1c
@ -65,7 +65,7 @@ struct hippo
|
||||
ulong phys = header.bootinfo.memory_map[bii].base;
|
||||
ulong phys_end = phys + header.bootinfo.memory_map[bii].size;
|
||||
usable_memory += header.bootinfo.memory_map[bii].size;
|
||||
phys_loop: while (phys < phys_end)
|
||||
while (phys < phys_end)
|
||||
{
|
||||
bool is_reserved = false;
|
||||
for (size_t ri = 0u; ri < reserved.length; ri++)
|
||||
@ -111,7 +111,7 @@ struct hippo
|
||||
public static void * allocate_page()
|
||||
{
|
||||
PhysicalPage * pp;
|
||||
if (pp != null)
|
||||
if (free_pages != null)
|
||||
{
|
||||
pp = free_pages;
|
||||
free_pages = free_pages.next;
|
||||
|
Loading…
x
Reference in New Issue
Block a user