VirtualBox

Changeset 81073 in vbox


Ignore:
Timestamp:
Sep 30, 2019 10:33:42 AM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
133677
Message:

SUPDrv,IPRT,VMM: Support host APIC ID above 256 in GIP. (Only tested on 4 core intel.) [warning] bugref:9501

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/asm-amd64-x86.h

    r81071 r81073  
    13981398DECLINLINE(uint32_t) ASMGetApicIdExt0B(void)
    13991399{
     1400# if RT_INLINE_ASM_GNU_STYLE
    14001401    RTCCUINTREG xDX;
    1401 # if RT_INLINE_ASM_GNU_STYLE
    14021402#  ifdef RT_ARCH_AMD64
    14031403    RTCCUINTREG uSpillEax, uSpillEcx;
     
    14301430                          : "ecx", "ebx");
    14311431#  endif
     1432    return (uint32_t)xDX;
    14321433
    14331434# elif RT_INLINE_ASM_USES_INTRIN >= 16 /*?*/
     
    14351436    int aInfo[4];
    14361437    __cpuidex(aInfo, 0xb, 0);
    1437     xDX = aInfo[3];
    1438 
    1439 # else
     1438    return aInfo[3];
     1439
     1440# else
     1441    RTCCUINTREG xDX;
    14401442    __asm
    14411443    {
     
    14471449        pop     ebx
    14481450    }
    1449 # endif
    1450     return xDX;
     1451    return (uint32_t)xDX;
     1452# endif
    14511453}
    14521454#endif
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