- Timestamp:
- May 9, 2010 9:25:16 PM (15 years ago)
- Location:
- trunk/src/VBox/Runtime
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/Makefile.kmk
r29262 r29271 990 990 VBoxRT_SDKS = VBOX_OPENSSL VBOX_LIBXML2 VBOX_BOOST 991 991 ifdef VBOX_WITH_LIBCURL 992 VBoxRT_SDKS+= VBOX_LIBCURL992 VBoxRT_SDKS += VBOX_LIBCURL 993 993 endif 994 994 VBoxRT_SDKS.win = WINPSDK W2K3DDK VBOX_NTDLL … … 997 997 endif 998 998 VBoxRT_DEFS = $(filter-out RT_NO_GIP,$(RuntimeR3_DEFS)) IN_SUP_R3 IN_SUP_R3 999 ifn1of ($(KBUILD_TARGET_ARCH), amd64 x86) 1000 VBoxRT_DEFS += RT_NO_GIP 1001 endif 999 1002 VBoxRT_DEFS.$(KBUILD_TYPE) = $(RuntimeR3_DEFS.$(KBUILD_TYPE)) 1000 1003 VBoxRT_SOURCES = \ … … 1034 1037 VBoxRT_INCS.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH) = $(RuntimeR3_INCS.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)) 1035 1038 VBoxRT_LIBS = \ 1036 $(PATH_LIB)/SUPR3$(VBOX_SUFF_LIB) \1037 1039 $(PATH_LIB)/VBox-liblzf$(VBOX_SUFF_LIB) \ 1038 1040 $(SDK_VBOX_ZLIB_LIBS) 1041 if1of ($(KBUILD_TARGET_ARCH), amd64 x86) 1042 VBoxRT_LIBS += \ 1043 $(PATH_LIB)/SUPR3$(VBOX_SUFF_LIB) 1044 endif 1039 1045 ifdef IPRT_WITH_KSTUFF 1040 1046 VBoxRT_LIBS += \ 1041 1047 $(PATH_LIB)/VBox-kStuff$(VBOX_SUFF_LIB) 1042 1048 endif 1043 ifndef 1049 ifndef SDK_VBOX_LIBXML2_LIBS 1044 1050 VBoxRT_LIBS += \ 1045 1051 $(PATH_LIB)/VBox-libxml2$(VBOX_SUFF_LIB) 1046 1052 endif 1047 ifndef 1053 ifndef SDK_VBOX_OPENSSL_LIBS 1048 1054 VBoxRT_LIBS += \ 1049 1055 $(PATH_LIB)/VBox-libcrypto$(VBOX_SUFF_LIB) … … 1059 1065 VBoxRT_LIBS.solaris = \ 1060 1066 kstat 1061 ifn1of ($(KBUILD_TARGET_ARCH), sparc32 sparc64)1067 ifn1of ($(KBUILD_TARGET_ARCH), sparc32 sparc64) 1062 1068 # SMBIOS not available on Solaris SPARC. 1063 1069 VBoxRT_LIBS.solaris += smbios -
trunk/src/VBox/Runtime/common/log/logcom.cpp
r29250 r29271 49 49 50 50 #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 52 54 #include <iprt/stdarg.h> 53 55 #include <iprt/string.h> … … 114 116 RTDECL(void) RTLogWriteCom(const char *pach, size_t cb) 115 117 { 118 #if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86) 116 119 const uint8_t *pu8; 117 120 for (pu8 = (const uint8_t *)pach; cb-- > 0; pu8++) … … 135 138 ASMOutU8(IPRT_UART_BASE, *pu8); 136 139 } 140 #else 141 /* PORTME? */ 142 #endif 137 143 } 138 144 RT_EXPORT_SYMBOL(RTLogWriteCom); -
trunk/src/VBox/Runtime/generic/spinlock-generic.cpp
r29250 r29271 43 43 #include <iprt/alloc.h> 44 44 #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 46 48 #include <iprt/err.h> 47 49 #include <iprt/assert.h> … … 117 119 ("pSpinlockInt=%p u32Magic=%08x\n", pSpinlockInt, pSpinlockInt ? (int)pSpinlockInt->u32Magic : 0)); 118 120 121 #if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86) 119 122 pTmp->uFlags = ASMGetFlags(); 123 #else 124 pTmp->uFlags = 0; 125 #endif 120 126 #if RT_CFG_SPINLOCK_GENERIC_DO_SLEEP 121 127 for (;;) 122 128 { 129 # if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86) 123 130 ASMIntDisable(); 131 # endif 124 132 for (int c = RT_CFG_SPINLOCK_GENERIC_DO_SLEEP; c > 0; c--) 125 133 if (ASMAtomicCmpXchgU32(&pSpinlockInt->fLocked, 1, 0)) … … 128 136 } 129 137 #else 138 # if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86) 130 139 ASMIntDisable(); 140 # endif 131 141 while (!ASMAtomicCmpXchgU32(&pSpinlockInt->fLocked, 1, 0)) 132 142 /*nothing */; … … 145 155 if (!ASMAtomicCmpXchgU32(&pSpinlockInt->fLocked, 0, 1)) 146 156 AssertMsgFailed(("Spinlock %p was not locked!\n", pSpinlockInt)); 157 #if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86) 147 158 ASMSetFlags(pTmp->uFlags); 159 #endif 148 160 } 149 161 RT_EXPORT_SYMBOL(RTSpinlockReleaseNoInts); -
trunk/src/VBox/Runtime/testcase/tstInlineAsm.cpp
r29250 r29271 32 32 #if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86) 33 33 # include <iprt/asm-amd64-x86.h> 34 #else 35 # include <iprt/time.h> 34 36 #endif 35 37 #include <iprt/stream.h>
Note:
See TracChangeset
for help on using the changeset viewer.