Changeset 26259 in vbox
- Timestamp:
- Feb 5, 2010 1:34:23 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PGMPhys.cpp
r26150 r26259 494 494 } 495 495 496 *ppv = (void *)((uintptr_t)pTlbe->pv | ( GCPhys & PAGE_OFFSET_MASK));496 *ppv = (void *)((uintptr_t)pTlbe->pv | (uintptr_t)(GCPhys & PAGE_OFFSET_MASK)); 497 497 pLock->uPageAndType = (uintptr_t)pPage | PGMPAGEMAPLOCK_TYPE_WRITE; 498 498 pLock->pvMap = pMap; … … 572 572 } 573 573 574 *ppv = (void *)((uintptr_t)pTlbe->pv | ( GCPhys & PAGE_OFFSET_MASK));574 *ppv = (void *)((uintptr_t)pTlbe->pv | (uintptr_t)(GCPhys & PAGE_OFFSET_MASK)); 575 575 pLock->uPageAndType = (uintptr_t)pPage | PGMPAGEMAPLOCK_TYPE_READ; 576 576 pLock->pvMap = pMap; … … 3377 3377 rc2 = pgmPhysPageQueryTlbe(&pVM->pgm.s, GCPhys, &pTlbe); 3378 3378 AssertLogRelRCReturn(rc2, rc2); 3379 *ppv = (void *)((uintptr_t)pTlbe->pv | ( GCPhys & PAGE_OFFSET_MASK));3379 *ppv = (void *)((uintptr_t)pTlbe->pv | (uintptr_t)(GCPhys & PAGE_OFFSET_MASK)); 3380 3380 /** @todo mapping/locking hell; this isn't horribly efficient since 3381 3381 * pgmPhysPageLoadIntoTlb will repeat the lookup we've done here. */
Note:
See TracChangeset
for help on using the changeset viewer.