Changeset 108466 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Mar 6, 2025 9:46:36 AM (2 months ago)
- svn:sync-xref-src-repo-rev:
- 167840
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/GICAll.cpp
r108465 r108466 1166 1166 Assert(pGicDev->fAffRoutingEnabled); RT_NOREF(pGicDev); 1167 1167 uint16_t const idxPriority = idxReg * sizeof(uint32_t); 1168 AssertReturn(idxPriority < RT_ELEMENTS(pGicCpu->abIntrPriority) - sizeof(uint32_t), VERR_BUFFER_OVERFLOW);1168 AssertReturn(idxPriority <= RT_ELEMENTS(pGicCpu->abIntrPriority) - sizeof(uint32_t), VERR_BUFFER_OVERFLOW); 1169 1169 AssertCompile(sizeof(*puValue) == sizeof(uint32_t)); 1170 1170 *puValue = *(uint32_t *)&pGicCpu->abIntrPriority[idxPriority]; … … 1189 1189 PGICCPU pGicCpu = VMCPU_TO_GICCPU(pVCpu); 1190 1190 uint16_t const idxPriority = idxReg * sizeof(uint32_t); 1191 AssertReturn(idxPriority < RT_ELEMENTS(pGicCpu->abIntrPriority) - sizeof(uint32_t), VERR_BUFFER_OVERFLOW);1191 AssertReturn(idxPriority <= RT_ELEMENTS(pGicCpu->abIntrPriority) - sizeof(uint32_t), VERR_BUFFER_OVERFLOW); 1192 1192 AssertCompile(sizeof(uValue) == sizeof(uint32_t)); 1193 1193 *(uint32_t *)&pGicCpu->abIntrPriority[idxPriority] = uValue; … … 1990 1990 PGICCPU pGicCpu = VMCPU_TO_GICCPU(pVCpu); 1991 1991 uint16_t const uIntId = gicGetHighestPrioPendingIntrEx(pGicDev, pGicCpu, fGroup0, fGroup1, &idxIntr, &bPriority); 1992 1993 /* If the priority must be higher than the priority mask for the interrupt to be signalled/acknowledged. */ 1994 if (pGicCpu->bIntrPriorityMask <= bPriority) 1995 return GIC_INTID_RANGE_SPECIAL_NO_INTERRUPT; 1992 1996 1993 1997 /* Acknowledge the interrupt. */ … … 3053 3057 } 3054 3058 3055 AssertRelease Failed();3059 AssertReleaseMsgFailed(("offReg=%#RX16\n", offReg)); 3056 3060 return VERR_INTERNAL_ERROR_2; 3057 3061 #else
Note:
See TracChangeset
for help on using the changeset viewer.