Changeset 92726 in vbox for trunk/src/VBox/VMM/VMMR3
- Timestamp:
- Dec 3, 2021 12:00:52 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/DBGFR3Bp.cpp
r90794 r92726 417 417 && !pUVM->dbgf.s.pbmBpOwnersAllocR3) 418 418 { 419 pUVM->dbgf.s.pbmBpOwnersAllocR3 = (volatile void *)RTMemAllocZ(DBGF_BP_OWNER_COUNT_MAX / 8); 419 AssertCompile(!(DBGF_BP_OWNER_COUNT_MAX % 64)); 420 pUVM->dbgf.s.pbmBpOwnersAllocR3 = RTMemAllocZ(DBGF_BP_OWNER_COUNT_MAX / 8); 420 421 if (pUVM->dbgf.s.pbmBpOwnersAllocR3) 421 422 { … … 572 573 { 573 574 /* Allocate the bitmap first so we can skip calling into VMMR0 if it fails. */ 574 AssertCompile(!(DBGF_BP_COUNT_PER_CHUNK % 8));575 vo latile void *pbmAlloc = RTMemAllocZ(DBGF_BP_COUNT_PER_CHUNK / 8);575 AssertCompile(!(DBGF_BP_COUNT_PER_CHUNK % 64)); 576 void *pbmAlloc = RTMemAllocZ(DBGF_BP_COUNT_PER_CHUNK / 8); 576 577 if (RT_LIKELY(pbmAlloc)) 577 578 { … … 586 587 { 587 588 pBpChunk->pBpBaseR3 = (PDBGFBPINT)Req.pChunkBaseR3; 588 pBpChunk->pbmAlloc =pbmAlloc;589 pBpChunk->pbmAlloc = (void volatile *)pbmAlloc; 589 590 pBpChunk->cBpsFree = DBGF_BP_COUNT_PER_CHUNK; 590 591 pBpChunk->idChunk = idChunk; … … 592 593 } 593 594 594 RTMemFree( (void *)pbmAlloc);595 RTMemFree(pbmAlloc); 595 596 } 596 597 else … … 782 783 { 783 784 /* Allocate the bitmap first so we can skip calling into VMMR0 if it fails. */ 784 AssertCompile(!(DBGF_BP_L2_TBL_ENTRIES_PER_CHUNK % 8));785 vo latile void *pbmAlloc = RTMemAllocZ(DBGF_BP_L2_TBL_ENTRIES_PER_CHUNK / 8);785 AssertCompile(!(DBGF_BP_L2_TBL_ENTRIES_PER_CHUNK % 64)); 786 void *pbmAlloc = RTMemAllocZ(DBGF_BP_L2_TBL_ENTRIES_PER_CHUNK / 8); 786 787 if (RT_LIKELY(pbmAlloc)) 787 788 { … … 796 797 { 797 798 pL2Chunk->pL2BaseR3 = (PDBGFBPL2ENTRY)Req.pChunkBaseR3; 798 pL2Chunk->pbmAlloc = pbmAlloc;799 pL2Chunk->pbmAlloc = (void volatile *)pbmAlloc; 799 800 pL2Chunk->cFree = DBGF_BP_L2_TBL_ENTRIES_PER_CHUNK; 800 801 pL2Chunk->idChunk = idChunk; … … 802 803 } 803 804 804 RTMemFree( (void *)pbmAlloc);805 RTMemFree(pbmAlloc); 805 806 } 806 807 else
Note:
See TracChangeset
for help on using the changeset viewer.