Changeset 6915 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Feb 11, 2008 11:35:37 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 28066
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PGM.cpp
r6914 r6915 3885 3885 pVM->pgm.s.fDisableMappings = !fEnable; 3886 3886 3887 size_t cb;3887 uint32_t cb; 3888 3888 int rc = PGMR3MappingsSize(pVM, &cb); 3889 3889 AssertRCReturn(rc, rc); -
trunk/src/VBox/VMM/PGMMap.cpp
r6914 r6915 54 54 * @param pszDesc Pointer to description string. This must not be freed. 55 55 */ 56 PGMR3DECL(int) PGMR3MapPT(PVM pVM, RTGCPTR GCPtr, size_t cb, PFNPGMRELOCATE pfnRelocate, void *pvUser, const char *pszDesc)56 PGMR3DECL(int) PGMR3MapPT(PVM pVM, RTGCPTR GCPtr, uint32_t cb, PFNPGMRELOCATE pfnRelocate, void *pvUser, const char *pszDesc) 57 57 { 58 58 LogFlow(("PGMR3MapPT: GCPtr=%#x cb=%d pfnRelocate=%p pvUser=%p pszDesc=%s\n", GCPtr, cb, pfnRelocate, pvUser, pszDesc)); … … 67 67 return VERR_INVALID_PARAMETER; 68 68 } 69 cb = RT_ALIGN_ Z(cb, _4M);69 cb = RT_ALIGN_32(cb, _4M); 70 70 RTGCPTR GCPtrLast = GCPtr + cb - 1; 71 71 if (GCPtrLast < GCPtr) … … 275 275 * @param pcb Where to store the size. 276 276 */ 277 PGMR3DECL(int) PGMR3MappingsSize(PVM pVM, size_t *pcb)278 { 279 size_tcb = 0;277 PGMR3DECL(int) PGMR3MappingsSize(PVM pVM, uint32_t *pcb) 278 { 279 RTGCUINTPTR cb = 0; 280 280 for (PPGMMAPPING pCur = pVM->pgm.s.pMappingsR3; pCur; pCur = pCur->pNextR3) 281 281 cb += pCur->cb; 282 282 283 283 *pcb = cb; 284 AssertReturn(*pcb != cb, VERR_NUMBER_TOO_BIG); 284 285 Log(("PGMR3MappingsSize: return %d (%#x) bytes\n", cb, cb)); 285 286 return VINF_SUCCESS; … … 295 296 * @param cb The size of the range starting at GCPtrBase. 296 297 */ 297 PGMR3DECL(int) PGMR3MappingsFix(PVM pVM, RTGCPTR GCPtrBase, size_t cb)298 PGMR3DECL(int) PGMR3MappingsFix(PVM pVM, RTGCPTR GCPtrBase, uint32_t cb) 298 299 { 299 300 Log(("PGMR3MappingsFix: GCPtrBase=%#x cb=%#x\n", GCPtrBase, cb));
Note:
See TracChangeset
for help on using the changeset viewer.