Changeset 106274 in vbox for trunk/src/VBox/Devices/Storage
- Timestamp:
- Oct 10, 2024 8:07:33 AM (5 months ago)
- svn:sync-xref-src-repo-rev:
- 165069
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DevBusLogic.cpp
r106061 r106274 420 420 RTGCPHYS GCPhysAddrMailboxIncomingBase; 421 421 422 /** Critical section protecting access to the interrupt status register . */422 /** Critical section protecting access to the interrupt status register and uMailboxIncomingPositionCurrent. */ 423 423 PDMCRITSECT CritSectIntr; 424 424 … … 1391 1391 MbxIn.u.in.uCompletionCode = uMailboxCompletionCode; 1392 1392 1393 int rc = PDMDevHlpCritSectEnter(pDevIns, &pThis->CritSectIntr, VINF_SUCCESS); 1394 PDM_CRITSECT_RELEASE_ASSERT_RC_DEV(pDevIns, &pThis->CritSectIntr, rc); 1395 1393 1396 RTGCPHYS GCPhysAddrMailboxIncoming = pThis->GCPhysAddrMailboxIncomingBase 1394 1397 + ( pThis->uMailboxIncomingPositionCurrent 1395 1398 * (pThis->fMbxIs24Bit ? sizeof(Mailbox24) : sizeof(Mailbox32)) ); 1396 1399 1400 /* Advance to next mailbox position. */ 1401 pThis->uMailboxIncomingPositionCurrent++; 1402 if (pThis->uMailboxIncomingPositionCurrent >= pThis->cMailbox) 1403 pThis->uMailboxIncomingPositionCurrent = 0; 1404 1405 PDMDevHlpCritSectLeave(pDevIns, &pThis->CritSectIntr); 1406 1397 1407 if (uMailboxCompletionCode != BUSLOGIC_MAILBOX_INCOMING_COMPLETION_ABORTED_NOT_FOUND) 1398 1408 { 1399 LogFlowFunc(("Completing CCB %RGp hstat=%u, dstat=%u, outgoing mailbox at %RGp\n", GCPhysAddrCCB,1409 LogFlowFunc(("Completing CCB %RGp hstat=%u, dstat=%u, incoming mailbox at %RGp\n", GCPhysAddrCCB, 1400 1410 uHostAdapterStatus, uDeviceStatus, GCPhysAddrMailboxIncoming)); 1401 1411 … … 1430 1440 } 1431 1441 1432 intrc = PDMDevHlpCritSectEnter(pDevIns, &pThis->CritSectIntr, VINF_SUCCESS);1442 rc = PDMDevHlpCritSectEnter(pDevIns, &pThis->CritSectIntr, VINF_SUCCESS); 1433 1443 PDM_CRITSECT_RELEASE_ASSERT_RC_DEV(pDevIns, &pThis->CritSectIntr, rc); 1434 1435 /* Advance to next mailbox position. */1436 pThis->uMailboxIncomingPositionCurrent++;1437 if (pThis->uMailboxIncomingPositionCurrent >= pThis->cMailbox)1438 pThis->uMailboxIncomingPositionCurrent = 0;1439 1444 1440 1445 # ifdef LOG_ENABLED
Note:
See TracChangeset
for help on using the changeset viewer.