VirtualBox

Changeset 62645 in vbox for trunk/src/VBox/VMM/VMMR3


Ignore:
Timestamp:
Jul 28, 2016 9:47:09 PM (8 years ago)
Author:
vboxsync
Message:

TRPM: Fixed ancient TRPMCPU structure misalignment caught by MSC warning. Stupid #pragma pack(4).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/TRPM.cpp

    r62478 r62645  
    895895    }
    896896    SSMR3PutBool(pSSM,      HMIsEnabled(pVM));
    897     PVMCPU pVCpu = &pVM->aCpus[0];  /* raw mode implies 1 VCPU */
     897    PVMCPU pVCpu = &pVM->aCpus[0];          /* raw mode implies 1 VCPU */
    898898    SSMR3PutUInt(pSSM,      VM_WHEN_RAW_MODE(VMCPU_FF_IS_SET(pVCpu, VMCPU_FF_TRPM_SYNC_IDT), 0));
    899899    SSMR3PutMem(pSSM,       &pTrpm->au32IdtPatched[0], sizeof(pTrpm->au32IdtPatched));
    900     SSMR3PutU32(pSSM, ~0);              /* separator. */
     900    SSMR3PutU32(pSSM, UINT32_MAX);          /* separator. */
    901901
    902902    /*
     
    913913    }
    914914
    915     return SSMR3PutU32(pSSM, ~0);       /* terminator */
     915    return SSMR3PutU32(pSSM, UINT32_MAX);   /* terminator */
    916916}
    917917
     
    12261226 * Check if address is a gate handler (interrupt or trap).
    12271227 *
    1228  * @returns gate nr or ~0 is not found
     1228 * @returns gate nr or UINT32_MAX is not found
    12291229 *
    12301230 * @param   pVM         The cross context VM structure.
     
    12501250        }
    12511251    }
    1252     return ~0;
     1252    return UINT32_MAX;
    12531253}
    12541254
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