VirtualBox

Changeset 53506 in vbox for trunk


Ignore:
Timestamp:
Dec 11, 2014 10:16:51 AM (10 years ago)
Author:
vboxsync
Message:

HostDrivers/support: paranoia.

File:
1 edited

Legend:

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

    r53505 r53506  
    56255625    if (!s_fQueried)
    56265626    {
    5627         uint32_t uEax, uEbx, uEcx, uEdx;
    5628         ASMCpuId(0x80000000, &uEax, &uEbx, &uEcx, &uEdx);
    5629         if (uEax >= 0x80000007)
    5630         {
    5631             ASMCpuId(0x80000007, &uEax, &uEbx, &uEcx, &uEdx);
    5632             if (uEdx & X86_CPUID_AMD_ADVPOWER_EDX_TSCINVAR)
    5633                 s_fIsInvariantTsc = true;
     5627        if (ASMHasCpuId())
     5628        {
     5629            uint32_t uEax, uEbx, uEcx, uEdx;
     5630            ASMCpuId(0x80000000, &uEax, &uEbx, &uEcx, &uEdx);
     5631            if (uEax >= 0x80000007)
     5632            {
     5633                ASMCpuId(0x80000007, &uEax, &uEbx, &uEcx, &uEdx);
     5634                if (uEdx & X86_CPUID_AMD_ADVPOWER_EDX_TSCINVAR)
     5635                    s_fIsInvariantTsc = true;
     5636            }
    56345637        }
    56355638        s_fQueried = true;
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