VirtualBox

Changeset 53473 in vbox


Ignore:
Timestamp:
Dec 6, 2014 4:01:02 AM (10 years ago)
Author:
vboxsync
Message:

build fix and warnings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/SUPDrv.c

    r53469 r53473  
    61676167    if (   u64DeltaTsc < UINT64_MAX / RT_NS_1SEC
    61686168        && u64DeltaNanoTS < UINT32_MAX)
    6169         pGip->u64CpuHz = ASMMultU64ByU32DivByU32(u64DeltaTsc, RT_NS_1SEC, u64DeltaNanoTS);
     6169        pGip->u64CpuHz = ASMMultU64ByU32DivByU32(u64DeltaTsc, RT_NS_1SEC, (uint32_t)u64DeltaNanoTS);
    61706170    else
    61716171    {
     
    61736173        if (   u64DeltaTsc < UINT64_MAX / RT_NS_100MS
    61746174            && u64DeltaNanoTS / 10 < UINT32_MAX)
    6175             pGip->u64CpuHz = ASMMultU64ByU32DivByU32(u64DeltaTsc, RT_NS_100MS, u64DeltaNanoTS / 10);
     6175            pGip->u64CpuHz = ASMMultU64ByU32DivByU32(u64DeltaTsc, RT_NS_100MS, (uint32_t)(u64DeltaNanoTS / 10));
    61766176        else if (   u64DeltaTsc < UINT64_MAX / RT_NS_10MS
    61776177                 && u64DeltaNanoTS / 100 < UINT32_MAX)
    6178             pGip->u64CpuHz = ASMMultU64ByU32DivByU32(u64DeltaTsc, RT_NS_10MS, u64DeltaNanoTS / 100);
     6178            pGip->u64CpuHz = ASMMultU64ByU32DivByU32(u64DeltaTsc, RT_NS_10MS, (uint32_t)(u64DeltaNanoTS / 100));
    61796179        else if (   u64DeltaTsc < UINT64_MAX / RT_NS_1MS
    61806180                 && u64DeltaNanoTS / 1000 < UINT32_MAX)
    6181             pGip->u64CpuHz = ASMMultU64ByU32DivByU32(u64DeltaTsc, RT_NS_1MS, u64DeltaNanoTS / 1000);
     6181            pGip->u64CpuHz = ASMMultU64ByU32DivByU32(u64DeltaTsc, RT_NS_1MS, (uint32_t)(u64DeltaNanoTS / 1000));
    61826182        else /* Screw it. */
    61836183            pGip->u64CpuHz = u64DeltaTsc / (u64DeltaNanoTS / RT_NS_1SEC_64);
     
    79347934    while (cTries-- > 0)
    79357935    {
     7936        int rc2;
     7937        uint16_t iCpu;
     7938
    79367939        rc = SUPGetTsc(&uTsc, &idApic);
    79377940        if (RT_SUCCESS(rc))
     
    79437946
    79447947        /* If we failed to have a TSC-delta, measurement the TSC-delta and retry. */
    7945         int rc2;
    7946         uint16_t iCpu;
    79477948        AssertMsgReturn(idApic < RT_ELEMENTS(pGip->aiCpuFromApicId),
    79487949                        ("idApic=%u ArraySize=%u\n", idApic, RT_ELEMENTS(pGip->aiCpuFromApicId)), VERR_INVALID_CPU_INDEX);
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