Changeset 27800 in vbox
- Timestamp:
- Mar 29, 2010 7:56:26 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 59459
- Location:
- trunk/src/VBox/Runtime
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/Makefile.kmk
r27743 r27800 368 368 generic/RTLogWriteStdOut-generic.cpp \ 369 369 generic/RTLogWriteUser-generic.cpp \ 370 generic/RTMpGetDescription-generic.cpp \371 370 generic/RTTimerLRCreate-generic.cpp \ 372 371 generic/mempool-generic.cpp \ … … 396 395 RuntimeR3_SOURCES += common/time/timesupref.cpp 397 396 #endif 397 398 RuntimeR3_SOURCES.x86 += \ 399 generic/RTMpGetDescription-generic-stub.cpp 400 RuntimeR3_SOURCES.amd64 += \ 401 generic/RTMpGetDescription-generic-stub.cpp 402 RuntimeR3_SOURCES.sparc32 += \ 403 generic/RTMpGetDescription-generic.cpp 404 RuntimeR3_SOURCES.sparc64 += \ 405 generic/RTMpGetDescription-generic.cpp 398 406 399 407 ifdef IPRT_WITH_LZJB … … 744 752 r3/solaris/alloc-solaris.cpp \ 745 753 r3/solaris/mp-solaris.cpp \ 746 r3/solaris/RTSystemQueryDmiString-solaris.cpp \747 754 r3/solaris/rtProcInitExePath-solaris.cpp 755 RuntimeR3_SOURCES.solaris.amd64 = \ 756 r3/solaris/RTSystemQueryDmiString-solaris.cpp 757 RuntimeR3_SOURCES.solaris.x86 = \ 758 r3/solaris/RTSystemQueryDmiString-solaris.cpp 759 RuntimeR3_SOURCES.solaris.sparc32 = \ 760 generic/RTSystemQueryDmiString-generic.cpp 761 RuntimeR3_SOURCES.solaris.sparc64 = \ 762 generic/RTSystemQueryDmiString-generic.cpp 748 763 749 764 ## PORTME: Porters add their selection of platform specific files for Ring-3 here. … … 962 977 # 963 978 VBoxRT_TEMPLATE = VBoxR3Dll 964 VBoxRT_SDKS = VBOX_OPENSSL VBOX_LIBXML2 VBOX_LIBCURL VBOX_BOOST 979 VBoxRT_SDKS = VBOX_OPENSSL VBOX_LIBXML2 VBOX_BOOST 980 ifdef VBOX_WITH_LIBCURL 981 VBoxRT_SDKS += VBOX_LIBCURL 982 endif 965 983 VBoxRT_SDKS.win = WINPSDK W2K3DDK VBOX_NTDLL 966 984 if1of ($(KBUILD_TARGET)$(VBOX_WITH_HARDENING), darwin win) … … 973 991 $(filter-out common/checksum/crc32.cpp, $(RuntimeR3_SOURCES)) 974 992 VBoxRT_SOURCES += \ 975 common/misc/s3.cpp \976 993 r3/xml.cpp \ 977 994 common/checksum/RTSha1Digest.cpp \ … … 984 1001 common/checksum/sha512.cpp \ 985 1002 common/checksum/sha512str.cpp 1003 ifdef VBOX_WITH_LIBCURL 1004 VBoxRT_SOURCES += common/misc/s3.cpp 1005 endif 986 1006 VBoxRT_SOURCES.$(KBUILD_TARGET) = $(RuntimeR3_SOURCES.$(KBUILD_TARGET)) 987 1007 VBoxRT_SOURCES.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH) = $(RuntimeR3_SOURCES.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)) … … 1027 1047 rt 1028 1048 VBoxRT_LIBS.solaris = \ 1029 kstat smbios 1049 kstat 1050 ifn1of ($(KBUILD_TARGET_ARCH),sparc32 sparc64) 1051 # SMBIOS not available on Solaris SPARC. 1052 VBoxRT_LIBS.solaris += smbios 1053 endif 1030 1054 VBoxRT_LIBS.win = \ 1031 1055 $(PATH_SDK_W2K3DDK_LIB)/vccomsup.lib \ -
trunk/src/VBox/Runtime/common/checksum/md5.cpp
r22092 r27800 57 57 58 58 #include <iprt/string.h> /* for memcpy() */ 59 #if defined(RT_BIG_ENDIAN) 60 # include <iprt/asm.h> /* RT_LE2H_U32 uses ASMByteSwapU32. */ 61 #endif 59 62 60 63 … … 196 199 uint32_t t; 197 200 do { 198 t = *buf 201 t = *buf; 199 202 t = RT_LE2H_U32(t); 200 203 *buf = t; -
trunk/src/VBox/Runtime/common/log/log.cpp
r25899 r27800 293 293 RTLogGroupSettings(pLogger, pszGroupSettings); 294 294 295 #if defined(RT_ARCH_X86) && (!defined(LOG_USE_C99) || !defined(RT_WITHOUT_EXEC_ALLOC)) 295 296 /* 296 297 * Emit wrapper code. 297 298 */ 298 #if defined(LOG_USE_C99) && defined(RT_WITHOUT_EXEC_ALLOC)299 pu8Code = (uint8_t *)RTMemAlloc(64);300 #else301 299 pu8Code = (uint8_t *)RTMemExecAlloc(64); 302 #endif303 300 if (pu8Code) 304 301 { 305 302 pLogger->pfnLogger = *(PFNRTLOGGER*)&pu8Code; 306 #if defined(RT_ARCH_AMD64) || (defined(LOG_USE_C99) && defined(RT_WITHOUT_EXEC_ALLOC))307 /* this wrapper will not be used on AMD64, we will be requiring C99 compilers there. */308 *pu8Code++ = 0xcc;309 #else310 303 *pu8Code++ = 0x68; /* push imm32 */ 311 304 *(void **)pu8Code = pLogger; … … 319 312 *pu8Code++ = 0x04; 320 313 *pu8Code++ = 0xc3; /* ret near */ 321 #endif322 314 AssertMsg((uintptr_t)pu8Code - (uintptr_t)pLogger->pfnLogger <= 64, 323 315 ("Wrapper assembly is too big! %d bytes\n", (uintptr_t)pu8Code - (uintptr_t)pLogger->pfnLogger)); 324 325 316 rc = VINF_SUCCESS; 317 } 318 else 319 { 320 # ifdef RT_OS_LINUX 321 if (pszErrorMsg) /* Most probably SELinux causing trouble since the larger RTMemAlloc succeeded. */ 322 RTStrPrintf(pszErrorMsg, cchErrorMsg, "mmap(PROT_WRITE | PROT_EXEC) failed -- SELinux?"); 323 # endif 324 rc = VERR_NO_MEMORY; 325 } 326 if (RT_SUCCESS(rc)) 327 #endif /* X86 wrapper code*/ 328 { 326 329 #ifdef IN_RING3 /* files and env.vars. are only accessible when in R3 at the present time. */ 327 330 /* … … 435 438 RTMemExecFree(*(void **)&pLogger->pfnLogger); 436 439 #endif 437 }438 else439 {440 #ifdef RT_OS_LINUX441 /*442 * RTMemAlloc() succeeded but RTMemExecAlloc() failed -- most probably an SELinux problem.443 */444 if (pszErrorMsg)445 RTStrPrintf(pszErrorMsg, cchErrorMsg, "mmap(PROT_WRITE | PROT_EXEC) failed -- SELinux?");446 #endif /* RT_OS_LINUX */447 rc = VERR_NO_MEMORY;448 440 } 449 441 RTMemFree(pLogger); -
trunk/src/VBox/Runtime/common/misc/getopt.cpp
r26694 r27800 460 460 * Make sure the union is completely cleared out, whatever happens below. 461 461 */ 462 pValueUnion->u64 = 0;462 pValueUnion->u64.value = 0; 463 463 pValueUnion->pDef = NULL; 464 464 … … 730 730 * Make sure the union is completely cleared out, whatever happens below. 731 731 */ 732 pValueUnion->u64 = 0;732 pValueUnion->u64.value = 0; 733 733 pValueUnion->pDef = NULL; 734 734 -
trunk/src/VBox/Runtime/common/misc/req.cpp
r26562 r27800 821 821 } u; 822 822 u.pfn = pReq->u.Internal.pfn; 823 #if def RT_ARCH_AMD64823 #ifndef RT_ARCH_X86 824 824 switch (pReq->u.Internal.cArgs) 825 825 { … … 842 842 break; 843 843 } 844 #else /* x86:*/844 #else /* RT_ARCH_X86 */ 845 845 size_t cbArgs = pReq->u.Internal.cArgs * sizeof(uintptr_t); 846 846 # ifdef __GNUC__ … … 879 879 } 880 880 # endif 881 #endif /* x86 */881 #endif /* RT_ARCH_X86 */ 882 882 if ((pReq->fFlags & (RTREQFLAGS_RETURN_MASK)) == RTREQFLAGS_VOID) 883 883 rcRet = VINF_SUCCESS; -
trunk/src/VBox/Runtime/generic/RTMpCpuId-generic.cpp
r21337 r27800 41 41 RTDECL(RTCPUID) RTMpCpuId(void) 42 42 { 43 #if defined(RT_ARCH_X86) || defined(RT_ARCH_AMD64) 43 #if defined(RT_ARCH_X86) || defined(RT_ARCH_AMD64) || defined(RT_ARCH_SPARC) || defined(RT_ARCH_SPARC64) 44 44 return ASMGetApicId(); 45 45 #else -
trunk/src/VBox/Runtime/testcase/Makefile.kmk
r27576 r27800 72 72 tstInlineAsm \ 73 73 tstLdr \ 74 tstLdr-2 \75 tstLdr-3 \76 tstLdr-4 \77 74 tstLdrLoad \ 78 75 tstRTList \ … … 86 83 tstMove \ 87 84 tstMp-1 \ 88 tstNoCrt-1 \89 85 tstOnce \ 90 86 tstRTPath \ … … 96 92 tstRTFsQueries \ 97 93 tstR0ThreadPreemptionDriver \ 98 tstRTS3 \99 94 tstSemEvent \ 100 95 tstSemMutex \ … … 141 136 PROGRAMS.darwin += \ 142 137 tstDarwinSched 143 SYSMODS += \ 144 tstLdrObjR0 \ 145 tstRTR0MemUserKernel \ 146 tstR0ThreadPreemption 147 ifdef VBOX_WITH_RAW_MODE 148 SYSMODS += tstLdrObj 138 ifdef VBOX_WITH_LIBCURL 139 PROGRAMS += \ 140 tstRTS3 141 endif 142 ifn1of ($(KBUILD_TARGET_ARCH), sparc32 sparc64) 143 PROGRAMS += \ 144 tstLdr-2 \ 145 tstLdr-3 \ 146 tstLdr-4 \ 147 tstNoCrt-1 148 SYSMODS += \ 149 tstLdrObjR0 \ 150 tstRTR0MemUserKernel \ 151 tstR0ThreadPreemption 152 ifdef VBOX_WITH_RAW_MODE 153 SYSMODS += tstLdrObj 154 endif 149 155 endif 150 156 if1of ($(VBOX_LDR_FMT)), lx pe) 151 LIBRARIES += \152 tstLdr-4Imp157 LIBRARIES += \ 158 tstLdr-4Imp 153 159 endif 154 160
Note:
See TracChangeset
for help on using the changeset viewer.