VirtualBox

Changeset 1054 in vbox


Ignore:
Timestamp:
Feb 23, 2007 5:42:22 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
18930
Message:

Check for some power feature in 0x8000007 eax:8 like linux does.

File:
1 edited

Legend:

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

    r1049 r1054  
    40794079                && (uEDX & BIT(27) /*RDTSCP*/))
    40804080            {
    4081                 /** @todo when we get the model / family numbers of barcelona and other amd cores with proper TSC,
    4082                  * add the appropriate model checks here. */
    4083                 return SUPGIPMODE_ASYNC_TSC;
     4081                /* Check the power specs for <check the docs what this actually is>. */
     4082                ASMCpuId(0x80000000, &uEAX, &uEBX, &uECX, &uEDX);
     4083                if (uEAX < 0x80000007)
     4084                    return SUPGIPMODE_ASYNC_TSC;
     4085                ASMCpuId(0x80000007, &uEAX, &uEBX, &uECX, &uEDX);
     4086                if (!(uEDX & BIT(8)))
     4087                    return SUPGIPMODE_ASYNC_TSC;
    40844088            }
    40854089        }
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