VirtualBox

Ignore:
Timestamp:
Jan 31, 2022 10:17:19 PM (3 years ago)
Author:
vboxsync
Message:

iprt/asm-amd64-x86.h: Split out some non-assembly functions that related more to x86.h than to asm.h, changing the function prefix from ASM to RTX86. bugref:9898

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testboxscript/TestBoxHelper.cpp

    r93302 r93515  
    467467    /* VT-x */
    468468    ASMCpuId(0x00000000, &uEax, &uEbx, &uEcx, &uEdx);
    469     if (ASMIsValidStdRange(uEax))
     469    if (RTX86IsValidStdRange(uEax))
    470470    {
    471471        ASMCpuId(0x00000001, &uEax, &uEbx, &uEcx, &uEdx);
     
    476476    /* AMD-V */
    477477    ASMCpuId(0x80000000, &uEax, &uEbx, &uEcx, &uEdx);
    478     if (ASMIsValidExtRange(uEax))
     478    if (RTX86IsValidExtRange(uEax))
    479479    {
    480480        ASMCpuId(0x80000001, &uEax, &uEbx, &uEcx, &uEdx);
     
    509509        uint32_t uEax, uEbx, uEcx, uEdx;
    510510        ASMCpuId(0x80000000, &uEax, &uEbx, &uEcx, &uEdx);
    511         if (ASMIsValidExtRange(uEax) && uEax >= 0x8000000a)
     511        if (RTX86IsValidExtRange(uEax) && uEax >= 0x8000000a)
    512512        {
    513513            ASMCpuId(0x8000000a, &uEax, &uEbx, &uEcx, &uEdx);
     
    617617            uint32_t uEax, uEbx, uEcx, uEdx;
    618618            ASMCpuId(0x00000000, &uEax, &uEbx, &uEcx, &uEdx);
    619             if (ASMIsValidStdRange(uEax))
     619            if (RTX86IsValidStdRange(uEax))
    620620            {
    621621                ASMCpuId(0x00000001, &uEax, &uEbx, &uEcx, &uEdx);
     
    625625                       won't necessarily do so. */
    626626                    ASMCpuId(0x80000000, &uEax, &uEbx, &uEcx, &uEdx);
    627                     if (ASMIsValidExtRange(uEax))
     627                    if (RTX86IsValidExtRange(uEax))
    628628                    {
    629629                        ASMCpuId(0x80000001, &uEax, &uEbx, &uEcx, &uEdx);
     
    652652    uint32_t uEax, uEbx, uEcx, uEdx;
    653653    ASMCpuId(0, &uEax, &uEbx, &uEcx, &uEdx);
    654     if (ASMIsValidStdRange(uEax) && uEax >= 1)
     654    if (RTX86IsValidStdRange(uEax) && uEax >= 1)
    655655    {
    656656        uint32_t uEax1 = ASMCpuId_EAX(1);
    657         uint32_t uVersion = (ASMGetCpuFamily(uEax1) << 24)
    658                           | (ASMGetCpuModel(uEax1, ASMIsIntelCpuEx(uEbx, uEcx, uEdx)) << 8)
    659                           | ASMGetCpuStepping(uEax1);
     657        uint32_t uVersion = (RTX86GetCpuFamily(uEax1) << 24)
     658                          | (RTX86GetCpuModel(uEax1, RTX86IsIntelCpu(uEbx, uEcx, uEdx)) << 8)
     659                          | RTX86GetCpuStepping(uEax1);
    660660        int cch = RTPrintf("%#x\n", uVersion);
    661661        return cch > 0 ? RTEXITCODE_SUCCESS : RTEXITCODE_FAILURE;
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