fix(kernel/memory): correct loop control in ReservePages function

This commit is contained in:
EnderIce2 2025-04-07 07:25:11 +00:00
parent d8cd27196d
commit 03147b532c
Signed by: enderice2
GPG Key ID: FEB6B8A8507BA62E
2 changed files with 3 additions and 2 deletions

View File

@ -22,7 +22,8 @@
"kernel/scheduler",
"kernel/tty",
"kernel/std",
"kernel/vfs"
"kernel/vfs",
"kernel/memory"
]
}
}

View File

@ -264,7 +264,7 @@ namespace Memory
uintptr_t Index = ((uintptr_t)Address + (t * PAGE_SIZE)) / PAGE_SIZE;
if (unlikely(PageBitmap[Index] == true))
return;
continue;
if (PageBitmap.Set(Index, true))
{