VirtualBox

Changeset 29271 in vbox for trunk/src


Ignore:
Timestamp:
May 9, 2010 9:25:16 PM (15 years ago)
Author:
vboxsync
Message:

Make VBoxRT build on sparc.

Location:
trunk/src/VBox/Runtime
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/Makefile.kmk

    r29262 r29271  
    990990VBoxRT_SDKS                    = VBOX_OPENSSL VBOX_LIBXML2 VBOX_BOOST
    991991ifdef VBOX_WITH_LIBCURL
    992 VBoxRT_SDKS                   += VBOX_LIBCURL
     992 VBoxRT_SDKS                  += VBOX_LIBCURL
    993993endif
    994994VBoxRT_SDKS.win                = WINPSDK W2K3DDK VBOX_NTDLL
     
    997997endif
    998998VBoxRT_DEFS                    = $(filter-out RT_NO_GIP,$(RuntimeR3_DEFS)) IN_SUP_R3 IN_SUP_R3
     999ifn1of ($(KBUILD_TARGET_ARCH), amd64 x86)
     1000 VBoxRT_DEFS                  += RT_NO_GIP
     1001endif
    9991002VBoxRT_DEFS.$(KBUILD_TYPE)     = $(RuntimeR3_DEFS.$(KBUILD_TYPE))
    10001003VBoxRT_SOURCES                 = \
     
    10341037VBoxRT_INCS.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH) = $(RuntimeR3_INCS.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH))
    10351038VBoxRT_LIBS                    = \
    1036         $(PATH_LIB)/SUPR3$(VBOX_SUFF_LIB) \
    10371039        $(PATH_LIB)/VBox-liblzf$(VBOX_SUFF_LIB) \
    10381040        $(SDK_VBOX_ZLIB_LIBS)
     1041if1of ($(KBUILD_TARGET_ARCH), amd64 x86)
     1042VBoxRT_LIBS                   += \
     1043        $(PATH_LIB)/SUPR3$(VBOX_SUFF_LIB)
     1044endif
    10391045ifdef IPRT_WITH_KSTUFF
    10401046 VBoxRT_LIBS                  += \
    10411047        $(PATH_LIB)/VBox-kStuff$(VBOX_SUFF_LIB)
    10421048endif
    1043 ifndef  SDK_VBOX_LIBXML2_LIBS
     1049ifndef SDK_VBOX_LIBXML2_LIBS
    10441050 VBoxRT_LIBS                 += \
    10451051        $(PATH_LIB)/VBox-libxml2$(VBOX_SUFF_LIB)
    10461052endif
    1047 ifndef  SDK_VBOX_OPENSSL_LIBS
     1053ifndef SDK_VBOX_OPENSSL_LIBS
    10481054 VBoxRT_LIBS                 += \
    10491055        $(PATH_LIB)/VBox-libcrypto$(VBOX_SUFF_LIB)
     
    10591065VBoxRT_LIBS.solaris            = \
    10601066        kstat
    1061 ifn1of ($(KBUILD_TARGET_ARCH),sparc32 sparc64)
     1067ifn1of ($(KBUILD_TARGET_ARCH), sparc32 sparc64)
    10621068 # SMBIOS not available on Solaris SPARC.
    10631069 VBoxRT_LIBS.solaris += smbios
  • trunk/src/VBox/Runtime/common/log/logcom.cpp

    r29250 r29271  
    4949
    5050#include <iprt/asm.h>
    51 #include <iprt/asm-amd64-x86.h>
     51#if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86) /** @todo consider fixing the config instead. */
     52# include <iprt/asm-amd64-x86.h>
     53#endif
    5254#include <iprt/stdarg.h>
    5355#include <iprt/string.h>
     
    114116RTDECL(void) RTLogWriteCom(const char *pach, size_t cb)
    115117{
     118#if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86)
    116119    const uint8_t *pu8;
    117120    for (pu8 = (const uint8_t *)pach; cb-- > 0; pu8++)
     
    135138        ASMOutU8(IPRT_UART_BASE, *pu8);
    136139    }
     140#else
     141    /* PORTME? */
     142#endif
    137143}
    138144RT_EXPORT_SYMBOL(RTLogWriteCom);
  • trunk/src/VBox/Runtime/generic/spinlock-generic.cpp

    r29250 r29271  
    4343#include <iprt/alloc.h>
    4444#include <iprt/asm.h>
    45 #include <iprt/asm-amd64-x86.h>
     45#if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86)
     46# include <iprt/asm-amd64-x86.h>
     47#endif
    4648#include <iprt/err.h>
    4749#include <iprt/assert.h>
     
    117119              ("pSpinlockInt=%p u32Magic=%08x\n", pSpinlockInt, pSpinlockInt ? (int)pSpinlockInt->u32Magic : 0));
    118120
     121#if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86)
    119122    pTmp->uFlags = ASMGetFlags();
     123#else
     124    pTmp->uFlags = 0;
     125#endif
    120126#if RT_CFG_SPINLOCK_GENERIC_DO_SLEEP
    121127    for (;;)
    122128    {
     129# if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86)
    123130        ASMIntDisable();
     131# endif
    124132        for (int c = RT_CFG_SPINLOCK_GENERIC_DO_SLEEP; c > 0; c--)
    125133            if (ASMAtomicCmpXchgU32(&pSpinlockInt->fLocked, 1, 0))
     
    128136    }
    129137#else
     138# if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86)
    130139    ASMIntDisable();
     140# endif
    131141    while (!ASMAtomicCmpXchgU32(&pSpinlockInt->fLocked, 1, 0))
    132142        /*nothing */;
     
    145155    if (!ASMAtomicCmpXchgU32(&pSpinlockInt->fLocked, 0, 1))
    146156        AssertMsgFailed(("Spinlock %p was not locked!\n", pSpinlockInt));
     157#if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86)
    147158    ASMSetFlags(pTmp->uFlags);
     159#endif
    148160}
    149161RT_EXPORT_SYMBOL(RTSpinlockReleaseNoInts);
  • trunk/src/VBox/Runtime/testcase/tstInlineAsm.cpp

    r29250 r29271  
    3232#if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86)
    3333# include <iprt/asm-amd64-x86.h>
     34#else
     35# include <iprt/time.h>
    3436#endif
    3537#include <iprt/stream.h>
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