- Timestamp:
- Mar 20, 2007 8:02:06 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PGMMap.cpp
r1576 r1578 101 101 AssertMsgFailed(("Address is already in use by %s. req %#x-%#x take %#x-%#x\n", 102 102 pCur->pszDesc, GCPtr, GCPtrLast, pCur->GCPtr, pCur->GCPtrLast)); 103 LogRel(("VERR_PGM_MAPPING_CONFLICT: Address is already in use by %s. req %#x-%#x take %#x-%#x\n",pCur->pszDesc, GCPtr, GCPtrLast, pCur->GCPtr, pCur->GCPtrLast)); 103 LogRel(("VERR_PGM_MAPPING_CONFLICT: Address is already in use by %s. req %#x-%#x take %#x-%#x\n", 104 pCur->pszDesc, GCPtr, GCPtrLast, pCur->GCPtr, pCur->GCPtrLast)); 104 105 return VERR_PGM_MAPPING_CONFLICT; 105 106 } … … 464 465 PGMR3DECL(int) PGMR3MapIntermediate(PVM pVM, RTUINTPTR Addr, RTHCPHYS HCPhys, unsigned cbPages) 465 466 { 466 size_t cbHyper;467 RTGCPTR pvHyperGC;468 469 467 LogFlow(("PGMR3MapIntermediate: Addr=%RTptr HCPhys=%VHp cbPages=%#x\n", Addr, HCPhys, cbPages)); 470 468 … … 503 501 504 502 /* The intermediate mapping must not conflict with our default hypervisor address. */ 505 pvHyperGC = MMHyperGetArea(pVM, &cbHyper); 506 if ( uAddress < pvHyperGC 507 ? uAddress + cbPages > pvHyperGC 508 : pvHyperGC + cbHyper > uAddress 503 size_t cbHyper; 504 RTGCPTR pvHyperGC = MMHyperGetArea(pVM, &cbHyper); 505 if (uAddress < pvHyperGC 506 ? uAddress + cbPages > pvHyperGC 507 : pvHyperGC + cbHyper > uAddress 509 508 ) 510 509 { 511 AssertMsgFailed(("Addr=%RTptr HyperGC=%VGv cbPages=% d\n", Addr, pvHyperGC, cbPages));512 LogRel(("Addr=%RTptr HyperGC=%VGv cbPages=% d\n", Addr, pvHyperGC, cbPages));510 AssertMsgFailed(("Addr=%RTptr HyperGC=%VGv cbPages=%zu\n", Addr, pvHyperGC, cbPages)); 511 LogRel(("Addr=%RTptr HyperGC=%VGv cbPages=%zu\n", Addr, pvHyperGC, cbPages)); 513 512 return VERR_PGM_MAPPINGS_FIX_CONFLICT; /** @todo new error code */ 514 513 }
Note:
See TracChangeset
for help on using the changeset viewer.