ptos: mm: Properly convert pfd to physical in PM
Signed-off-by: Chloe M <chloe@mensia.org>
This commit is contained in:
@@ -221,7 +221,7 @@ MmRequestFrame(VOID)
|
|||||||
Pfd = PmPfdListPop(&AvlList);
|
Pfd = PmPfdListPop(&AvlList);
|
||||||
RtlMemSet(Pfd, 0, PAGESIZE);
|
RtlMemSet(Pfd, 0, PAGESIZE);
|
||||||
|
|
||||||
PhysicalBase = (UPTR)Pfd;
|
PhysicalBase = VMA_TO_PMA(Pfd);
|
||||||
return ADDRESS_TO_PFN(PhysicalBase);
|
return ADDRESS_TO_PFN(PhysicalBase);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user