Changeset 6527 in vbox
- Timestamp:
- Jan 28, 2008 2:42:18 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 27553
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/GMMR0.cpp
r6333 r6527 225 225 struct GMMPAGEFREE 226 226 { 227 /** The index of the next page in the free list. */228 uint 32_t iNext;227 /** The index of the next page in the free list. UINT16_MAX is NIL. */ 228 uint16_t iNext; 229 229 /** Reserved. Checksum or something? */ 230 uint32_t u30Reserved : 30; 230 uint16_t u16Reserved0; 231 /** Reserved. Checksum or something? */ 232 uint32_t u30Reserved1 : 30; 231 233 /** The page state. */ 232 234 uint32_t u2State : 2; … … 268 270 struct GMMPAGEFREE 269 271 { 270 /** The index of the next page in the free list. */ 271 uint32_t iNext : 30; 272 /** The index of the next page in the free list. UINT16_MAX is NIL. */ 273 uint32_t iNext : 16; 274 /** Reserved. Checksum or something? */ 275 uint32_t u14Reserved : 14; 272 276 /** The page state. */ 273 277 uint32_t u2State : 2; … … 275 279 #endif 276 280 } GMMPAGE; 281 AssertCompileSize(GMMPAGE, sizeof(RTHCUINTPTR)); 277 282 /** Pointer to a GMMPAGE. */ 278 283 typedef GMMPAGE *PGMMPAGE; … … 594 599 * Check and see if RTR0MemObjAllocPhysNC works. 595 600 */ 601 #if 0 /* later */ 596 602 RTR0MEMOBJ MemObj; 597 603 rc = RTR0MemObjAllocPhysNC(&MemObj, _64K, NIL_RTHCPHYS); … … 605 611 else 606 612 SUPR0Printf("GMMR0Init: RTR0MemObjAllocPhysNC(,64K,Any) -> %d!\n", rc); 613 #else 614 pGMM->fLegacyMode = true; 615 #endif 607 616 608 617 g_pGMM = pGMM; … … 637 646 638 647 /* 639 * Undo what init did and free a nyresources we've acquired.648 * Undo what init did and free all the resources we've acquired. 640 649 */ 641 650 /* Destroy the fundamentals. */ … … 1402 1411 } 1403 1412 pChunk->aPages[RT_ELEMENTS(pChunk->aPages) - 1].Free.u2State = GMM_PAGE_STATE_FREE; 1404 /* XXX sizeof(iNext) < 32, please fix this!! */ 1405 pChunk->aPages[RT_ELEMENTS(pChunk->aPages) - 1].Free.iNext = UINT32_MAX; 1413 pChunk->aPages[RT_ELEMENTS(pChunk->aPages) - 1].Free.iNext = UINT16_MAX; 1406 1414 1407 1415 /*
Note:
See TracChangeset
for help on using the changeset viewer.