- Timestamp:
- Jun 14, 2013 4:12:24 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/mangling.h
r46298 r46567 812 812 # define RTMd5ToString RT_MANGLER(RTMd5ToString) 813 813 # define RTMd5Update RT_MANGLER(RTMd5Update) 814 # define RTMemAllocExTag RT_MANGLER(RTMemAllocExTag) /* r0drv */814 # define RTMemAllocExTag RT_MANGLER(RTMemAllocExTag) 815 815 # define RTMemAllocTag RT_MANGLER(RTMemAllocTag) 816 816 # define RTMemAllocVarTag RT_MANGLER(RTMemAllocVarTag) … … 852 852 # define RTMemExecFree RT_MANGLER(RTMemExecFree) 853 853 # define RTMemFree RT_MANGLER(RTMemFree) 854 # define RTMemFreeEx RT_MANGLER(RTMemFreeEx) /* r0drv */854 # define RTMemFreeEx RT_MANGLER(RTMemFreeEx) 855 855 # define RTMemPageAllocTag RT_MANGLER(RTMemPageAllocTag) 856 856 # define RTMemPageAllocZTag RT_MANGLER(RTMemPageAllocZTag) -
trunk/include/iprt/mem.h
r45174 r46567 314 314 * Will return VERR_NOT_SUPPORTED if not supported. */ 315 315 #define RTMEMALLOCEX_FLAGS_ANY_CTX (RTMEMALLOCEX_FLAGS_ANY_CTX_ALLOC | RTMEMALLOCEX_FLAGS_ANY_CTX_FREE) 316 /** Reachable by 16-bit address. 317 * Will return VERR_NOT_SUPPORTED if not supported. */ 318 #define RTMEMALLOCEX_FLAGS_16BIT_REACH RT_BIT(4) 319 /** Reachable by 32-bit address. 320 * Will return VERR_NOT_SUPPORTED if not supported. */ 321 #define RTMEMALLOCEX_FLAGS_32BIT_REACH RT_BIT(5) 316 322 /** Mask of valid flags. */ 317 #define RTMEMALLOCEX_FLAGS_VALID_MASK UINT32_C(0x0000000f) 323 #define RTMEMALLOCEX_FLAGS_VALID_MASK UINT32_C(0x0000003f) 324 /** Mask of valid flags for ring-0. */ 325 #define RTMEMALLOCEX_FLAGS_VALID_MASK_R0 UINT32_C(0x0000000f) 318 326 /** @} */ 319 327 … … 337 345 /** 338 346 * Extended heap allocation API, custom tag. 347 * 348 * Depending on the implementation, using this function may add extra overhead, 349 * so use the simpler APIs where ever possible. 339 350 * 340 351 * @returns IPRT status code. … … 358 369 * @param pv What to free, NULL is fine. 359 370 * @param cb The amount of allocated memory. 371 * @param fFlags The flags specified when allocating the memory. 372 * Whether the exact flags are requires depends on 373 * the implementation, but in general, ring-0 374 * doesn't require anything while ring-3 requires 375 * RTMEMALLOCEX_FLAGS_EXEC if used. 360 376 */ 361 377 RTDECL(void) RTMemFreeEx(void *pv, size_t cb) RT_NO_THROW; -
trunk/src/VBox/Runtime/Makefile.kmk
r46266 r46567 583 583 generic/RTThreadGetNativeState-generic.cpp \ 584 584 nt/RTErrConvertFromNtStatus.cpp \ 585 r3/generic/allocex-r3-generic.cpp \ 585 586 r3/posix/env-posix.cpp \ 586 587 r3/win/RTHandleGetStandard-win.cpp \ … … 638 639 generic/utf16locale-generic.cpp \ 639 640 generic/uuid-generic.cpp \ 641 r3/generic/allocex-r3-generic.cpp \ 640 642 r3/linux/RTThreadGetNativeState-linux.cpp \ 641 643 r3/linux/mp-linux.cpp \ … … 735 737 generic/RTThreadGetNativeState-generic.cpp \ 736 738 os2/RTErrConvertFromOS2.cpp \ 739 r3/generic/allocex-r3-generic.cpp \ 737 740 r3/os2/filelock-os2.cpp \ 738 741 r3/os2/mp-os2.cpp \ … … 808 811 r3/darwin/time-darwin.cpp \ 809 812 r3/darwin/RTPathUserDocuments-darwin.cpp \ 813 r3/generic/allocex-r3-generic.cpp \ 810 814 r3/posix/RTFileQueryFsSizes-posix.cpp \ 811 815 r3/posix/RTHandleGetStandard-posix.cpp \ … … 868 872 r3/freebsd/mp-freebsd.cpp \ 869 873 r3/freebsd/rtProcInitExePath-freebsd.cpp \ 874 r3/generic/allocex-r3-generic.cpp \ 870 875 r3/posix/RTFileQueryFsSizes-posix.cpp \ 871 876 r3/posix/RTHandleGetStandard-posix.cpp \ … … 928 933 generic/uuid-generic.cpp \ 929 934 generic/RTThreadGetNativeState-generic.cpp \ 935 r3/generic/allocex-r3-generic.cpp \ 930 936 r3/posix/RTFileQueryFsSizes-posix.cpp \ 931 937 r3/posix/RTHandleGetStandard-posix.cpp \ … … 1003 1009 r3/haiku/rtProcInitExePath-haiku.cpp \ 1004 1010 r3/haiku/time-haiku.cpp \ 1011 r3/generic/allocex-r3-generic.cpp \ 1005 1012 r3/posix/RTFileQueryFsSizes-posix.cpp \ 1006 1013 r3/posix/RTHandleGetStandard-posix.cpp \ -
trunk/src/VBox/Runtime/include/internal/magics.h
r45984 r46567 115 115 /** The magic value for heap blocks. (Edgar Allan Poe) */ 116 116 #define RTMEMHDR_MAGIC UINT32_C(0x18090119) 117 /** The magic value for heap blocks after freeing. */ 118 #define RTMEMHDR_MAGIC_DEAD UINT32_C(0x18491007) 117 119 /** The value of RTPIPEINTERNAL::u32Magic. (Frank Schaetzing) */ 118 120 #define RTPIPE_MAGIC UINT32_C(0x19570528) -
trunk/src/VBox/Runtime/r0drv/alloc-r0drv.cpp
r46565 r46567 350 350 * Validate and convert flags. 351 351 */ 352 AssertMsgReturn(!(fFlags & ~RTMEMALLOCEX_FLAGS_VALID_MASK ), ("%#x\n", fFlags), VERR_INVALID_PARAMETER);352 AssertMsgReturn(!(fFlags & ~RTMEMALLOCEX_FLAGS_VALID_MASK_R0), ("%#x\n", fFlags), VERR_INVALID_PARAMETER); 353 353 if (fFlags & RTMEMALLOCEX_FLAGS_ZEROED) 354 354 fHdrFlags |= RTMEMHDR_FLAG_ZEROED;
Note:
See TracChangeset
for help on using the changeset viewer.