VirtualBox

Changeset 101062 in vbox for trunk/src/VBox/VMM/VMMAll


Ignore:
Timestamp:
Sep 8, 2023 8:53:04 AM (18 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
159021
Message:

VMM/GICAll: Properly fix assertion, uIntId == 0 is of course allowed (r158982 regression)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/GICAll.cpp

    r101025 r101062  
    12441244    PDM_CRITSECT_RELEASE_ASSERT_RC_DEV(pDevIns, pDevIns->pCritSectRoR3, rcLock);
    12451245
    1246     AssertReturn(uIntId > 0 && uIntId <= (GIC_INTID_RANGE_PPI_LAST - GIC_INTID_RANGE_PPI_START), VERR_INVALID_PARAMETER);
     1246    AssertReturn(uIntId <= (GIC_INTID_RANGE_PPI_LAST - GIC_INTID_RANGE_PPI_START), VERR_INVALID_PARAMETER);
    12471247    int rc = gicReDistInterruptSet(pVCpu, uIntId + GIC_INTID_RANGE_PPI_START, fAsserted);
    12481248    PDMDevHlpCritSectLeave(pDevIns, pDevIns->pCritSectRoR3);
     
    12701270    PDM_CRITSECT_RELEASE_ASSERT_RC_DEV(pDevIns, pDevIns->pCritSectRoR3, rcLock);
    12711271
    1272     AssertReturn(uIntId > 0 && uIntId <= (GIC_INTID_RANGE_SGI_LAST - GIC_INTID_RANGE_SGI_START), VERR_INVALID_PARAMETER);
     1272    AssertReturn(uIntId <= (GIC_INTID_RANGE_SGI_LAST - GIC_INTID_RANGE_SGI_START), VERR_INVALID_PARAMETER);
    12731273    int rc = gicReDistInterruptSet(pVCpu, uIntId + GIC_INTID_RANGE_SGI_START, fAsserted);
    12741274    PDMDevHlpCritSectLeave(pDevIns, pDevIns->pCritSectRoR3);
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette