Changeset 68840 in vbox for trunk/src/VBox/Runtime/common/fs
- Timestamp:
- Sep 23, 2017 12:50:40 AM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 118094
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/fs/isomakercmd.cpp
r68830 r68840 1200 1200 iBlock = RTRandU32Ex(0, cBlocks - 1); 1201 1201 fBitSet = ASMBitTestAndSet(pvBitmap, iBlock); 1202 } while (fBitSet && ++cTries < 32);1202 } while (fBitSet && ++cTries < /*32 - testing buggy assembly*/ 1); 1203 1203 if (fBitSet) 1204 1204 { 1205 1205 /* Look for the next clear bit after it (with wrap around). */ 1206 //int iHit = ASMBitNextClear(pvBitmap, RT_ALIGN_32(cBlocks, 64), iBlock); - buggy assembly somewhere... 1206 1207 int iHit = ASMBitNextClear(pvBitmap, cBlocks, iBlock); 1207 1208 Assert(iHit < (int32_t)cBlocks); 1208 1209 if (iHit < 0) 1209 1210 { 1211 //iHit = ASMBitNextClear(pvBitmap, RT_ALIGN_32(iBlock, 64), 0); - buggy assembly somewhere... 1210 1212 iHit = ASMBitNextClear(pvBitmap, iBlock, 0); 1211 1213 Assert(iHit < (int32_t)cBlocks); … … 1219 1221 { 1220 1222 rc = rtFsIsoMakerCmdErrorRc(pOpts, VERR_INTERNAL_ERROR_3, 1221 "Bitmap weirdness: iHit=%#x iBlock=%#x cBlocks=%#x", 1222 iHit, iBlock, cBlocks); 1223 "Bitmap weirdness: iHit=%#x iBlock=%#x cLeft=%#x cBlocks=%#x", 1224 iHit, iBlock, cLeft, cBlocks); 1225 if (!pOpts->pErrInfo) 1226 RTMsgInfo("Bitmap: %#RX32 bytes\n%.*Rhxd", cbBitmap, cbBitmap, pvBitmap); 1223 1227 break; 1224 1228 } … … 1226 1230 else 1227 1231 { 1228 rc = rtFsIsoMakerCmdErrorRc(pOpts, VERR_INTERNAL_ERROR_2, "Bitmap weirdness: iBlock=%#x cBlocks=%#x", 1229 iBlock, cBlocks); 1232 rc = rtFsIsoMakerCmdErrorRc(pOpts, VERR_INTERNAL_ERROR_2, 1233 "Bitmap weirdness: iBlock=%#x cLeft=%#x cBlocks=%#x", 1234 iBlock, cLeft, cBlocks); 1235 if (!pOpts->pErrInfo) 1236 RTMsgInfo("Bitmap: %#RX32 bytes\n%.*Rhxd", cbBitmap, cbBitmap, pvBitmap); 1230 1237 break; 1231 1238 }
Note:
See TracChangeset
for help on using the changeset viewer.