- Timestamp:
- Apr 19, 2018 10:05:28 AM (7 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Config.kmk
r71840 r71916 1574 1574 DEFS.x86 = RT_ARCH_X86 __X86__ 1575 1575 DEFS.amd64 = RT_ARCH_AMD64 __AMD64__ 1576 DEFS.sparc32 = RT_ARCH_SPARC 1577 DEFS.sparc64 = RT_ARCH_SPARC64 1576 1578 DEFS.darwin = RT_OS_DARWIN __DARWIN__ 1577 1579 DEFS.freebsd = RT_OS_FREEBSD __FREEBSD__ -
trunk/src/VBox/Runtime/Makefile.kmk
r71492 r71916 263 263 RuntimeR3_DEFS = \ 264 264 IN_RT_R3 \ 265 IN_SUP_R3 \266 265 LDR_WITH_NATIVE \ 267 266 LDR_WITH_ELF32 \ 268 267 LDR_WITH_PE \ 269 268 RT_WITH_VBOX \ 270 269 RT_NO_GIP \ 271 270 RT_WITHOUT_NOCRT_WRAPPERS \ 272 IPRT_WITH_OPENSSL \ 273 NOFILEID 271 IPRT_WITH_OPENSSL \ 272 NOFILEID 273 if1of ($(KBUILD_TARGET_ARCH), amd64 x86) 274 RuntimeR3_DEFS += \ 275 IN_SUP_R3 276 endif 274 277 #RuntimeR3_DEFS += RTMEM_WRAP_TO_EF_APIS 275 278 ifdef IPRT_WITH_KSTUFF … … 1383 1386 r3/solaris/RTSystemQueryDmiString-solaris.cpp 1384 1387 RuntimeR3_SOURCES.solaris.sparc32 = \ 1388 common/string/memrchr.cpp \ 1385 1389 generic/RTSystemQueryDmiString-generic.cpp 1386 1390 RuntimeR3_SOURCES.solaris.sparc64 = \ 1391 common/string/memrchr.cpp \ 1387 1392 generic/RTSystemQueryDmiString-generic.cpp 1388 1393 … … 1603 1608 endif 1604 1609 VBoxRT_DEFS := $(filter-out RT_NO_GIP, $(RuntimeR3_DEFS)) \ 1605 I N_SUP_R3 IN_SUP_R3 IPRT_WITH_XAR \1610 IPRT_WITH_XAR \ 1606 1611 $(if-expr !defined(VBOX_WITH_ALT_HASH_CODE),IPRT_WITHOUT_SHA512T224 IPRT_WITHOUT_SHA512T256,) 1607 1612 ifn1of ($(KBUILD_TARGET_ARCH), amd64 x86) -
trunk/src/VBox/Runtime/common/asm/asm-fake.cpp
r71522 r71916 5 5 6 6 /* 7 * Copyright (C) 2010-201 7Oracle Corporation7 * Copyright (C) 2010-2018 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 139 139 } 140 140 141 RTDECL(uint32_t) ASMAtomicUoIncU32(uint32_t volatile *pu32) 142 { 143 return *pu32 += 1; 144 } 145 141 146 RTDECL(uint32_t) ASMAtomicDecU32(uint32_t volatile *pu32) 142 147 { … … 144 149 } 145 150 151 RTDECL(uint32_t) ASMAtomicUoDecU32(uint32_t volatile *pu32) 152 { 153 return *pu32 -= 1; 154 } 155 146 156 RTDECL(uint64_t) ASMAtomicIncU64(uint64_t volatile *pu64) 147 157 { … … 159 169 } 160 170 171 RTDECL(void) ASMAtomicUoOrU32(uint32_t volatile *pu32, uint32_t u32) 172 { 173 *pu32 |= u32; 174 } 175 161 176 RTDECL(void) ASMAtomicAndU32(uint32_t volatile *pu32, uint32_t u32) 177 { 178 *pu32 &= u32; 179 } 180 181 RTDECL(void) ASMAtomicUoAndU32(uint32_t volatile *pu32, uint32_t u32) 162 182 { 163 183 *pu32 &= u32; … … 455 475 uint32_t iBit; 456 476 for (iBit = 0; iBit < 64; iBit++) 477 if (u32 & RT_BIT_64(iBit)) 478 return iBit + 1; 479 return 0; 480 } 481 482 RTDECL(unsigned) ASMBitLastSetU64(uint64_t u64) 483 { 484 int32_t iBit = 64; 485 while (iBit-- > 0) 457 486 if (u64 & RT_BIT_64(iBit)) 458 487 return iBit + 1; -
trunk/src/VBox/Runtime/testcase/tstRTInlineAsm.cpp
r71678 r71916 1874 1874 BENCH(ASMAtomicUoAndU32(&s_u32, 0xffffffff), "ASMAtomicUoAndU32"); 1875 1875 BENCH(ASMAtomicUoOrU32(&s_u32, 0xffffffff), "ASMAtomicUoOrU32"); 1876 #if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86) 1876 1877 BENCH_TSC(ASMSerializeInstructionCpuId(), "ASMSerializeInstructionCpuId"); 1877 1878 BENCH_TSC(ASMSerializeInstructionIRet(), "ASMSerializeInstructionIRet"); 1879 #endif 1878 1880 1879 1881 /* The Darwin gcc does not like this ... */ -
trunk/src/VBox/Runtime/testcase/tstRTMemSafer.cpp
r69111 r71916 36 36 #include <iprt/string.h> 37 37 #include <iprt/test.h> 38 #if def VBOX38 #if defined(VBOX) && (defined(RT_ARCH_X86) || defined(RT_ARCH_AMD64)) 39 39 # include <VBox/sup.h> 40 40 #endif … … 149 149 return rcExit; 150 150 RTTestBanner(hTest); 151 #if def VBOX151 #if defined(VBOX) && (defined(RT_ARCH_X86) || defined(RT_ARCH_AMD64)) 152 152 SUPR3Init(NULL); 153 153 #endif
Note:
See TracChangeset
for help on using the changeset viewer.