- Timestamp:
- Dec 11, 2014 10:16:51 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/SUPDrv.c
r53505 r53506 5625 5625 if (!s_fQueried) 5626 5626 { 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 } 5634 5637 } 5635 5638 s_fQueried = true;
Note:
See TracChangeset
for help on using the changeset viewer.