- Timestamp:
- Mar 28, 2008 8:25:54 AM (17 years ago)
- Location:
- trunk/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/MM.cpp
r6830 r7613 331 331 * If requested, allocated the rest too. 332 332 */ 333 rc = PGM3PhysGrowRange(pVM, (RTGCPHYS)0); 333 RTGCPHYS GCPhys = (RTGCPHYS)0; 334 rc = PGM3PhysGrowRange(pVM, &GCPhys); 334 335 if (RT_SUCCESS(rc) && fPreAlloc) 335 for ( RTGCPHYSGCPhys = PGM_DYNAMIC_CHUNK_SIZE;336 for (GCPhys = PGM_DYNAMIC_CHUNK_SIZE; 336 337 GCPhys < cbRam && RT_SUCCESS(rc); 337 338 GCPhys += PGM_DYNAMIC_CHUNK_SIZE) 338 rc = PGM3PhysGrowRange(pVM, GCPhys);339 rc = PGM3PhysGrowRange(pVM, &GCPhys); 339 340 } 340 341 #endif -
trunk/src/VBox/VMM/PGMPhys.cpp
r7605 r7613 1164 1164 * @param GCPhys GC physical address of the RAM range. (page aligned) 1165 1165 */ 1166 PGMR3DECL(int) PGM3PhysGrowRange(PVM pVM, RTGCPHYS GCPhys) 1167 { 1166 PGMR3DECL(int) PGM3PhysGrowRange(PVM pVM, PCRTGCPHYS pGCPhys) 1167 { 1168 RTGCPHYS GCPhys = *pGCPhys; 1169 1168 1170 /* 1169 1171 * Walk range list. … … 1215 1217 { 1216 1218 PVMREQ pReq; 1219 const RTGCPHYS GCPhysParam = GCPhys; 1217 1220 1218 1221 AssertMsg(!PDMCritSectIsOwner(&pVM->pgm.s.CritSect), ("We own the PGM lock -> deadlock danger!!\n")); 1219 1222 1220 rc = VMR3ReqCall(pVM, &pReq, RT_INDEFINITE_WAIT, (PFNRT)PGM3PhysGrowRange, 1 + sizeof(RTGCPHYS)/sizeof(uintptr_t), pVM, GCPhys);1223 rc = VMR3ReqCall(pVM, &pReq, RT_INDEFINITE_WAIT, (PFNRT)PGM3PhysGrowRange, 2, pVM, &GCPhysParam); 1221 1224 if (VBOX_SUCCESS(rc)) 1222 1225 { -
trunk/src/VBox/VMM/VMM.cpp
r7015 r7613 2213 2213 case VMMCALLHOST_PGM_RAM_GROW_RANGE: 2214 2214 { 2215 pVM->vmm.s.rcCallHost = PGM3PhysGrowRange(pVM, pVM->vmm.s.u64CallHostArg);2215 pVM->vmm.s.rcCallHost = PGM3PhysGrowRange(pVM, &pVM->vmm.s.u64CallHostArg); 2216 2216 break; 2217 2217 } -
trunk/src/recompiler/VBoxREMWrapper.cpp
r6546 r7613 664 664 { 665 665 { REMPARMDESC_FLAGS_INT, sizeof(PVM), NULL }, 666 { REMPARMDESC_FLAGS_GCPHYS, sizeof( RTGCPHYS), NULL }666 { REMPARMDESC_FLAGS_GCPHYS, sizeof(PCRTGCPHYS), NULL } 667 667 }; 668 668 static const REMPARMDESC g_aArgsPGMPhysIsGCPhysValid[] = -
trunk/src/recompiler/VBoxRecompiler.c
r6546 r7613 2558 2558 2559 2559 Log(("remR3GrowDynRange %VGp\n", physaddr)); 2560 rc = PGM3PhysGrowRange(pVM, (RTGCPHYS)physaddr); 2560 RTGCPHYS GCPhys = physaddr; 2561 rc = PGM3PhysGrowRange(pVM, &GCPhys); 2561 2562 if (VBOX_SUCCESS(rc)) 2562 2563 return;
Note:
See TracChangeset
for help on using the changeset viewer.