mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-28 15:34:33 +00:00
Reserve all pages and then unreserve available pages
This commit is contained in:
parent
b15f738e16
commit
ecc19f4df0
@ -419,14 +419,9 @@ namespace Memory
|
|||||||
*(uint8_t *)(PageBitmap.Buffer + i) = 0;
|
*(uint8_t *)(PageBitmap.Buffer + i) = 0;
|
||||||
|
|
||||||
debug("Reserving pages...");
|
debug("Reserving pages...");
|
||||||
for (uint64_t i = 0; i < Info->Memory.Entries; i++)
|
this->ReservePages(0, TO_PAGES(Info->Memory.Size));
|
||||||
{
|
debug("Unreserving usable pages...");
|
||||||
if (Info->Memory.Entry[i].Type != Usable)
|
|
||||||
this->ReservePages(Info->Memory.Entry[i].BaseAddress, TO_PAGES(Info->Memory.Entry[i].Length));
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Making sure that the lower memory area is properly reserved. */
|
|
||||||
this->ReservePages(0, 0x200);
|
|
||||||
for (uint64_t i = 0; i < Info->Memory.Entries; i++)
|
for (uint64_t i = 0; i < Info->Memory.Entries; i++)
|
||||||
{
|
{
|
||||||
if (Info->Memory.Entry[i].Type == Usable)
|
if (Info->Memory.Entry[i].Type == Usable)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user