From 072253dc34ca9c9b808f1da7713a1d1793024b9a Mon Sep 17 00:00:00 2001 From: Chloe M Date: Sat, 11 Jul 2026 20:15:16 -0400 Subject: [PATCH] ptos: mm: Properly convert pfd to physical in PM Signed-off-by: Chloe M --- service/ptos/mm/pm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/ptos/mm/pm.c b/service/ptos/mm/pm.c index ce5c609..bcef43f 100644 --- a/service/ptos/mm/pm.c +++ b/service/ptos/mm/pm.c @@ -221,7 +221,7 @@ MmRequestFrame(VOID) Pfd = PmPfdListPop(&AvlList); RtlMemSet(Pfd, 0, PAGESIZE); - PhysicalBase = (UPTR)Pfd; + PhysicalBase = VMA_TO_PMA(Pfd); return ADDRESS_TO_PFN(PhysicalBase); }