Ensure correct PTE value assignment via accessors
All checks were successful
Builds / ExectOS (amd64, release) (push) Successful in 28s
Builds / ExectOS (i686, release) (push) Successful in 29s
Builds / ExectOS (amd64, debug) (push) Successful in 40s
Builds / ExectOS (i686, debug) (push) Successful in 38s

This commit is contained in:
2026-03-15 20:31:33 +01:00
parent 42525e5993
commit 80092a299e

View File

@@ -856,7 +856,7 @@ MM::Pfn::LinkPfnForPageTable(IN PFN_NUMBER PageFrameIndex,
(MM::Pte::AddressValid(EndAddress)) && (Pfn->u3.e1.PageLocation == ActiveAndValid)) (MM::Pte::AddressValid(EndAddress)) && (Pfn->u3.e1.PageLocation == ActiveAndValid))
{ {
/* Initialize the PFN entry for this page table page */ /* Initialize the PFN entry for this page table page */
Pfn->OriginalPte = *PointerPte; MM::Paging::SetPte(&Pfn->OriginalPte, MM::Paging::GetPte(PointerPte));
Pfn->PteAddress = PointerPte; Pfn->PteAddress = PointerPte;
Pfn->u1.WsIndex = 0; Pfn->u1.WsIndex = 0;
Pfn->u2.ShareCount++; Pfn->u2.ShareCount++;