VirtualBox

Changeset 45860 in vbox


Ignore:
Timestamp:
May 1, 2013 10:35:54 AM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
85448
Message:

tstRTInlineAsm.cpp: Try fix the ASMCpuId test. (Don't expect local apic id to remain the same between two calls as we might be rescheduled.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/testcase/tstRTInlineAsm.cpp

    r44528 r45860  
    218218            u32 = ASMCpuId_EAX(iStd);
    219219            CHECKVAL(u32, s.uEAX, "%x");
     220
     221            uint32_t u32EbxMask = UINT32_MAX;
     222            if (iStd == 1)
     223                u32EbxMask = UINT32_C(0x00ffffff); /* Omit the local apic ID in case we're rescheduled. */
    220224            u32 = ASMCpuId_EBX(iStd);
    221             CHECKVAL(u32, s.uEBX, "%x");
     225            CHECKVAL(u32 & u32EbxMask, s.uEBX & u32EbxMask, "%x");
     226
    222227            u32 = ASMCpuId_ECX(iStd);
    223228            CHECKVAL(u32, s.uECX, "%x");
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette