mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-05-28 15:34:31 +00:00
fix(kernel/memory): correct loop control in ReservePages function
This commit is contained in:
parent
d8cd27196d
commit
03147b532c
@ -22,7 +22,8 @@
|
|||||||
"kernel/scheduler",
|
"kernel/scheduler",
|
||||||
"kernel/tty",
|
"kernel/tty",
|
||||||
"kernel/std",
|
"kernel/std",
|
||||||
"kernel/vfs"
|
"kernel/vfs",
|
||||||
|
"kernel/memory"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -264,7 +264,7 @@ namespace Memory
|
|||||||
uintptr_t Index = ((uintptr_t)Address + (t * PAGE_SIZE)) / PAGE_SIZE;
|
uintptr_t Index = ((uintptr_t)Address + (t * PAGE_SIZE)) / PAGE_SIZE;
|
||||||
|
|
||||||
if (unlikely(PageBitmap[Index] == true))
|
if (unlikely(PageBitmap[Index] == true))
|
||||||
return;
|
continue;
|
||||||
|
|
||||||
if (PageBitmap.Set(Index, true))
|
if (PageBitmap.Set(Index, true))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user