VirtualBox

Changeset 71522 in vbox for trunk


Ignore:
Timestamp:
Mar 26, 2018 6:15:27 PM (7 years ago)
Author:
vboxsync
Message:

Fixes for SPARC

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r71486 r71522  
    170170         && $(KBUILD_VERSION_PATCH) >= 999))
    171171 VBOX_MIN_KMK_REVISION        := 3093
    172  VBOX_MIN_KBUILD_KMK_REVISION := $(if-expr "$(KBUILD_HOST)" == "win",3097,3074)
     172 VBOX_MIN_KBUILD_KMK_REVISION := $(if-expr "$(KBUILD_HOST)" == "win",3097,$(if-expr "$(KBUILD_HOST).$(KBUILD_HOST_ARCH)" == "solaris.sparc64",2511,3074))
    173173 if $(KMK_REVISION) >= $(VBOX_MIN_KMK_REVISION)
    174174  if $(KBUILD_KMK_REVISION) >= $(VBOX_MIN_KBUILD_KMK_REVISION)
  • trunk/include/iprt/asm.h

    r71339 r71522  
    15101510#if (defined(RT_ARCH_X86) && ARCH_BITS == 16) || defined(IN_GUEST)
    15111511# define ASMSerializeInstruction() ASMSerializeInstructionIRet()
    1512 #else
     1512#elif defined(RT_ARCH_X86) || defined(RT_ARCH_AMD64)
    15131513# define ASMSerializeInstruction() ASMSerializeInstructionCpuId()
     1514#elif defined(RT_ARCH_SPARC64)
     1515RTDECL(void) ASMSerializeInstruction(void);
     1516#else
     1517# error "Port me"
    15141518#endif
    15151519
  • trunk/src/VBox/Runtime/common/asm/asm-fake.cpp

    r69111 r71522  
    451451}
    452452
     453RTDECL(unsigned) ASMBitFirstSetU64(uint64_t u64)
     454{
     455    uint32_t iBit;
     456    for (iBit = 0; iBit < 64; iBit++)
     457        if (u64 & RT_BIT_64(iBit))
     458            return iBit + 1;
     459    return 0;
     460}
     461
    453462RTDECL(uint16_t) ASMByteSwapU16(uint16_t u16)
    454463{
  • trunk/src/VBox/Storage/VCICache.cpp

    r69500 r71522  
    14261426        /* Setup the root tree. */
    14271427        memset(&NodeRoot, 0, sizeof(VciTreeNode));
    1428         NodeRoot.u8Type = RT_H2LE_U32(VCI_TREE_NODE_TYPE_LEAF);
     1428        NodeRoot.u8Type = VCI_TREE_NODE_TYPE_LEAF;
    14291429
    14301430        rc = vdIfIoIntFileWriteSync(pCache->pIfIo, pCache->pStorage, offTreeRoot,
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