Changeset 26262 in vbox
- Timestamp:
- Feb 5, 2010 2:11:21 AM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 57320
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/PGMAllPhys.cpp
r26150 r26262 663 663 PPGMRAMRANGE pRam = pgmPhysGetRange(&pVM->pgm.s, GCPhys); 664 664 AssertMsgReturn(pRam || !pRam->pvR3, ("pRam=%p pPage=%R[pgmpage]\n", pRam, pPage), VERR_INTERNAL_ERROR_2); 665 *ppv = (void *)((uintptr_t)pRam->pvR3 + ( GCPhys & ~(RTGCPHYS)PAGE_OFFSET_MASK) - pRam->GCPhys);665 *ppv = (void *)((uintptr_t)pRam->pvR3 + (uintptr_t)((GCPhys & ~(RTGCPHYS)PAGE_OFFSET_MASK) - pRam->GCPhys)); 666 666 } 667 667 else if (PGM_PAGE_GET_TYPE(pPage) == PGMPAGETYPE_MMIO2_ALIAS_MMIO) … … 983 983 if (RT_FAILURE(rc)) 984 984 return rc; 985 *ppv = (void *)((uintptr_t)pTlbe->pv | ( GCPhys & PAGE_OFFSET_MASK));985 *ppv = (void *)((uintptr_t)pTlbe->pv | (uintptr_t)(GCPhys & PAGE_OFFSET_MASK)); 986 986 #endif 987 987 return VINF_SUCCESS; … … 1021 1021 if (RT_FAILURE(rc)) 1022 1022 return rc; 1023 *ppv = (void *)((uintptr_t)pTlbe->pv | ( GCPhys & PAGE_OFFSET_MASK));1023 *ppv = (void *)((uintptr_t)pTlbe->pv | (uintptr_t)(GCPhys & PAGE_OFFSET_MASK)); 1024 1024 #endif 1025 1025 return VINF_SUCCESS; … … 1132 1132 } 1133 1133 1134 *ppv = (void *)((uintptr_t)pTlbe->pv | ( GCPhys & PAGE_OFFSET_MASK));1134 *ppv = (void *)((uintptr_t)pTlbe->pv | (uintptr_t)(GCPhys & PAGE_OFFSET_MASK)); 1135 1135 pLock->uPageAndType = (uintptr_t)pPage | PGMPAGEMAPLOCK_TYPE_WRITE; 1136 1136 pLock->pvMap = pMap; … … 1234 1234 } 1235 1235 1236 *ppv = (void *)((uintptr_t)pTlbe->pv | ( GCPhys & PAGE_OFFSET_MASK));1236 *ppv = (void *)((uintptr_t)pTlbe->pv | (uintptr_t)(GCPhys & PAGE_OFFSET_MASK)); 1237 1237 pLock->uPageAndType = (uintptr_t)pPage | PGMPAGEMAPLOCK_TYPE_READ; 1238 1238 pLock->pvMap = pMap;
Note:
See TracChangeset
for help on using the changeset viewer.