VirtualBox

Changeset 61151 in vbox


Ignore:
Timestamp:
May 24, 2016 7:46:40 AM (9 years ago)
Author:
vboxsync
Message:

VMM/APIC: naming.

File:
1 edited

Legend:

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

    r61150 r61151  
    414414 * @param   rcNotFound      What to return when no bit is set.
    415415 */
    416 static int apicGetHighestSetBit(volatile const XAPIC256BITREG *pReg, int rcNotFound)
     416static int apicGetHighestSetBitInReg(volatile const XAPIC256BITREG *pReg, int rcNotFound)
    417417{
    418418    ssize_t const  cFragments     = RT_ELEMENTS(pReg->u);
     
    505505    if (pXApicPage->svr.u.fApicSoftwareEnable)
    506506    {
    507         int const irrv = apicGetHighestSetBit(&pXApicPage->irr, -1 /* rcNotFound */);
     507        int const irrv = apicGetHighestSetBitInReg(&pXApicPage->irr, -1 /* rcNotFound */);
    508508        if (irrv >= 0)
    509509        {
     
    11031103    /* See Intel spec 10.8.3.1 "Task and Processor Priorities". */
    11041104    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 */);
    11061106    uint8_t       uPpr;
    11071107    if (XAPIC_TPR_GET_TP(pXApicPage->tpr.u8Tpr) >= XAPIC_PPR_GET_PP(uIsrv))
     
    11821182
    11831183    PXAPICPAGE pXApicPage = VMCPU_TO_XAPICPAGE(pVCpu);
    1184     int isrv = apicGetHighestSetBit(&pXApicPage->isr, -1 /* rcNotFound */);
     1184    int isrv = apicGetHighestSetBitInReg(&pXApicPage->isr, -1 /* rcNotFound */);
    11851185    if (isrv >= 0)
    11861186    {
     
    21522152{
    21532153    PCXAPICPAGE pXApicPage = VMCPU_TO_CXAPICPAGE(pVCpu);
    2154     int const irrv = apicGetHighestSetBit(&pXApicPage->irr, -1);
     2154    int const irrv = apicGetHighestSetBitInReg(&pXApicPage->irr, -1);
    21552155    if (irrv >= 0)
    21562156    {
     
    23612361        && pXApicPage->svr.u.fApicSoftwareEnable)
    23622362    {
    2363         int const irrv = apicGetHighestSetBit(&pXApicPage->irr, -1);
     2363        int const irrv = apicGetHighestSetBitInReg(&pXApicPage->irr, -1);
    23642364        if (RT_LIKELY(irrv >= 0))
    23652365        {
Note: See TracChangeset for help on using the changeset viewer.

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