Changeset 92117 in vbox for trunk/src/VBox/VMM/VMMR3
- Timestamp:
- Oct 28, 2021 12:23:50 AM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 147936
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/PGMPhys.cpp
r92006 r92117 4621 4621 for (uint32_t iPage = 0; iPage < cPages && cbSrcLeft > 0; iPage++, pbSrcPage += PAGE_SIZE) 4622 4622 { 4623 const RTGCPHYS GCPhys = pRom->GCPhys + (iPage << PAGE_SHIFT); 4624 void const *pvDstPage; 4625 int rc = pgmPhysPageMapReadOnly(pVM, &pRom->aPages[iPage].Virgin, GCPhys, &pvDstPage); 4623 const RTGCPHYS GCPhys = pRom->GCPhys + (iPage << PAGE_SHIFT); 4624 PPGMPAGE const pPage = pgmPhysGetPage(pVM, GCPhys); 4625 void const *pvDstPage = NULL; 4626 int rc = pgmPhysPageMapReadOnly(pVM, pPage, GCPhys, &pvDstPage); 4626 4627 if (RT_FAILURE(rc)) 4627 4628 break; … … 4631 4632 if (pVM->pgm.s.fRestoreRomPagesOnReset) 4632 4633 { 4633 void *pvDstPageW ;4634 rc = pgmPhysPageMap(pVM, &pRom->aPages[iPage].Virgin, GCPhys, &pvDstPageW);4634 void *pvDstPageW = NULL; 4635 rc = pgmPhysPageMap(pVM, pPage, GCPhys, &pvDstPageW); 4635 4636 AssertLogRelRCReturn(rc, rc); 4636 4637 memcpy(pvDstPageW, pbSrcPage, RT_MIN(cbSrcLeft, PAGE_SIZE));
Note:
See TracChangeset
for help on using the changeset viewer.