- Timestamp:
- Mar 20, 2007 10:23:17 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PGMMap.cpp
r1573 r1575 465 465 PGMR3DECL(int) PGMR3MapIntermediate(PVM pVM, RTUINTPTR Addr, RTHCPHYS HCPhys, unsigned cbPages) 466 466 { 467 size_t cbHyper; 468 RTGCPTR pvHyperGC; 469 467 470 LogFlow(("PGMR3MapIntermediate: Addr=%RTptr HCPhys=%VHp cbPages=%#x\n", Addr, HCPhys, cbPages)); 468 471 … … 497 500 AssertMsgFailed(("Addr=%RTptr HCPhys=%VHp cbPages=%d\n", Addr, HCPhys, cbPages)); 498 501 LogRel(("Addr=%RTptr HCPhys=%VHp cbPages=%d\n", Addr, HCPhys, cbPages)); 502 return VERR_PGM_MAPPINGS_FIX_CONFLICT; /** @todo new error code */ 503 } 504 505 /* The intermediate mapping must not conflict with our default hypervisor address. */ 506 pvHyperGC = MMHyperGetArea(pVM, &cbHyper); 507 if ( uAddress < pvHyperGC 508 ? uAddress + cbPages > pvHyperGC 509 : pvHyperGC + cbHyper > uAddress 510 ) 511 { 512 AssertMsgFailed(("Addr=%RTptr HyperGC=%VGv cbPages=%d\n", Addr, pvHyperGC, cbPages)); 513 LogRel(("Addr=%RTptr HyperGC=%VGv cbPages=%d\n", Addr, pvHyperGC, cbPages)); 499 514 return VERR_PGM_MAPPINGS_FIX_CONFLICT; /** @todo new error code */ 500 515 }
Note:
See TracChangeset
for help on using the changeset viewer.