Changeset 61151 in vbox
- Timestamp:
- May 24, 2016 7:46:40 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/APICAll.cpp
r61150 r61151 414 414 * @param rcNotFound What to return when no bit is set. 415 415 */ 416 static int apicGetHighestSetBit (volatile const XAPIC256BITREG *pReg, int rcNotFound)416 static int apicGetHighestSetBitInReg(volatile const XAPIC256BITREG *pReg, int rcNotFound) 417 417 { 418 418 ssize_t const cFragments = RT_ELEMENTS(pReg->u); … … 505 505 if (pXApicPage->svr.u.fApicSoftwareEnable) 506 506 { 507 int const irrv = apicGetHighestSetBit (&pXApicPage->irr, -1 /* rcNotFound */);507 int const irrv = apicGetHighestSetBitInReg(&pXApicPage->irr, -1 /* rcNotFound */); 508 508 if (irrv >= 0) 509 509 { … … 1103 1103 /* See Intel spec 10.8.3.1 "Task and Processor Priorities". */ 1104 1104 PXAPICPAGE pXApicPage = VMCPU_TO_XAPICPAGE(pVCpu); 1105 uint8_t const uIsrv = apicGetHighestSetBit (&pXApicPage->isr, 0 /* rcNotFound */);1105 uint8_t const uIsrv = apicGetHighestSetBitInReg(&pXApicPage->isr, 0 /* rcNotFound */); 1106 1106 uint8_t uPpr; 1107 1107 if (XAPIC_TPR_GET_TP(pXApicPage->tpr.u8Tpr) >= XAPIC_PPR_GET_PP(uIsrv)) … … 1182 1182 1183 1183 PXAPICPAGE pXApicPage = VMCPU_TO_XAPICPAGE(pVCpu); 1184 int isrv = apicGetHighestSetBit (&pXApicPage->isr, -1 /* rcNotFound */);1184 int isrv = apicGetHighestSetBitInReg(&pXApicPage->isr, -1 /* rcNotFound */); 1185 1185 if (isrv >= 0) 1186 1186 { … … 2152 2152 { 2153 2153 PCXAPICPAGE pXApicPage = VMCPU_TO_CXAPICPAGE(pVCpu); 2154 int const irrv = apicGetHighestSetBit (&pXApicPage->irr, -1);2154 int const irrv = apicGetHighestSetBitInReg(&pXApicPage->irr, -1); 2155 2155 if (irrv >= 0) 2156 2156 { … … 2361 2361 && pXApicPage->svr.u.fApicSoftwareEnable) 2362 2362 { 2363 int const irrv = apicGetHighestSetBit (&pXApicPage->irr, -1);2363 int const irrv = apicGetHighestSetBitInReg(&pXApicPage->irr, -1); 2364 2364 if (RT_LIKELY(irrv >= 0)) 2365 2365 {
Note:
See TracChangeset
for help on using the changeset viewer.