Changeset 30725 in vbox
- Timestamp:
- Jul 8, 2010 8:56:22 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DevBusLogic.cpp
r30723 r30725 790 790 * @returns nothing. 791 791 * @param pBusLogic Pointer to the BusLogic device instance. 792 */ 793 static void buslogicSetInterrupt(PBUSLOGIC pBusLogic) 792 * @param fSuppressIrq Flag to suppress IRQ generation regardless of fIRQEnabled 793 */ 794 static void buslogicSetInterrupt(PBUSLOGIC pBusLogic, bool fSuppressIrq) 794 795 { 795 796 LogFlowFunc(("pBusLogic=%#p\n", pBusLogic)); … … 862 863 * 863 864 * @returns nothing. 864 * @param pBusLogic Pointer to the BusLogic device instance 865 */ 866 static void buslogicCommandComplete(PBUSLOGIC pBusLogic) 865 * @param pBusLogic Pointer to the BusLogic device instance 866 * @param fSuppressIrq Flag to suppress IRQ generation regardless of current state 867 */ 868 static void buslogicCommandComplete(PBUSLOGIC pBusLogic, bool fSuppressIrq) 867 869 { 868 870 LogFlowFunc(("pBusLogic=%#p\n", pBusLogic)); … … 880 882 pBusLogic->regInterrupt |= BUSLOGIC_REGISTER_INTERRUPT_COMMAND_COMPLETE; 881 883 882 buslogicSetInterrupt(pBusLogic );884 buslogicSetInterrupt(pBusLogic, fSuppressIrq); 883 885 } 884 886 … … 941 943 942 944 pBusLogic->regInterrupt |= BUSLOGIC_REGISTER_INTERRUPT_INCOMING_MAILBOX_LOADED; 943 buslogicSetInterrupt(pBusLogic );945 buslogicSetInterrupt(pBusLogic, false); 944 946 945 947 PDMCritSectLeave(&pBusLogic->CritSectIntr); … … 1264 1266 { 1265 1267 int rc = VINF_SUCCESS; 1268 bool fSuppressIrq = false; 1266 1269 1267 1270 LogFlowFunc(("pBusLogic=%#p\n", pBusLogic)); … … 1451 1454 else 1452 1455 pBusLogic->fIRQEnabled = true; 1456 /* No interrupt signaled regardless of enable/disable. */ 1457 fSuppressIrq = true; 1453 1458 break; 1454 1459 } … … 1484 1489 pBusLogic->regStatus |= BUSLOGIC_REGISTER_STATUS_DATA_IN_REGISTER_READY; 1485 1490 else 1486 buslogicCommandComplete(pBusLogic );1491 buslogicCommandComplete(pBusLogic, fSuppressIrq); 1487 1492 1488 1493 return rc; … … 1534 1539 * interrupt the guest if enabled. 1535 1540 */ 1536 buslogicCommandComplete(pBusLogic );1541 buslogicCommandComplete(pBusLogic, false); 1537 1542 } 1538 1543 break;
Note:
See TracChangeset
for help on using the changeset viewer.