Changeset 18369 in vbox for trunk/src/VBox/VMM/VMMR0
- Timestamp:
- Mar 27, 2009 3:24:07 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/GMMR0.cpp
r18219 r18369 513 513 uint32_t idChunkPrev; 514 514 /** Chunk ID allocation bitmap. 515 * Bits of allocated IDs are set, free ones are clear ed.515 * Bits of allocated IDs are set, free ones are clear. 516 516 * The NIL id (0) is marked allocated. */ 517 uint32_t bmChunkId[(GMM_CHUNKID_LAST + 32) >> 10];517 uint32_t bmChunkId[(GMM_CHUNKID_LAST + 1 + 31) / 32]; 518 518 } GMM; 519 519 /** Pointer to the GMM instance. */ … … 1373 1373 if (idChunk > NIL_GMM_CHUNKID) 1374 1374 { 1375 AssertMsgReturn(!ASMAtomicBitTestAndSet(&pGMM->bmChunkId[0], idChunk), ("%#x\n", idChunk), NIL_G VM_HANDLE);1375 AssertMsgReturn(!ASMAtomicBitTestAndSet(&pGMM->bmChunkId[0], idChunk), ("%#x\n", idChunk), NIL_GMM_CHUNKID); 1376 1376 return pGMM->idChunkPrev = idChunk; 1377 1377 } … … 1384 1384 idChunk = ASMBitFirstClear(&pGMM->bmChunkId[0], GMM_CHUNKID_LAST + 1); 1385 1385 AssertMsgReturn(idChunk > NIL_GMM_CHUNKID, ("%#x\n", idChunk), NIL_GVM_HANDLE); 1386 AssertMsgReturn(!ASMAtomicBitTestAndSet(&pGMM->bmChunkId[0], idChunk), ("%#x\n", idChunk), NIL_G VM_HANDLE);1386 AssertMsgReturn(!ASMAtomicBitTestAndSet(&pGMM->bmChunkId[0], idChunk), ("%#x\n", idChunk), NIL_GMM_CHUNKID); 1387 1387 1388 1388 return pGMM->idChunkPrev = idChunk;
Note:
See TracChangeset
for help on using the changeset viewer.