Refactor PFN linking logic
All checks were successful
Builds / ExectOS (amd64, debug) (push) Successful in 30s
Builds / ExectOS (amd64, release) (push) Successful in 31s
Builds / ExectOS (i686, debug) (push) Successful in 30s
Builds / ExectOS (i686, release) (push) Successful in 31s

This commit is contained in:
2026-02-25 19:27:53 +01:00
parent 44fa2ca13a
commit bfdb7bc476
3 changed files with 109 additions and 51 deletions

View File

@@ -76,7 +76,7 @@ MM::KernelPool::AllocateKernelStack(OUT PVOID *Stack,
*PointerPte = InvalidPte;
/* Associate the physical page with its corresponding PTE in the PFN database */
MM::Pfn::LinkPfnToPte(PageFrameIndex, PointerPte, 1);
MM::Pfn::LinkPfn(PageFrameIndex, PointerPte, TRUE);
/* Make the PTE valid, mapping the virtual address to the physical page */
MM::Paging::SetPte(&TempPte, PageFrameIndex, 0);