Changeset 40894 in vbox for trunk/include/iprt
- Timestamp:
- Apr 12, 2012 2:40:45 PM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 77439
- Location:
- trunk/include/iprt
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/mangling.h
r40807 r40894 982 982 # define RTR0MemAreKrnlAndUsrDifferent RT_MANGLER(RTR0MemAreKrnlAndUsrDifferent) /* r0drv */ 983 983 # define RTR0MemExecDonate RT_MANGLER(RTR0MemExecDonate) /* r0drv */ 984 # define RTR0MemExecInit RT_MANGLER(RTR0MemExecInit) /* r0drv */985 984 # define RTR0MemKernelIsValidAddr RT_MANGLER(RTR0MemKernelIsValidAddr) /* r0drv */ 986 985 # define RTR0MemObjAddress RT_MANGLER(RTR0MemObjAddress) /* r0drv */ -
trunk/include/iprt/mem.h
r40869 r40894 407 407 */ 408 408 RTR0DECL(int) RTR0MemExecDonate(void *pvMemory, size_t cb) RT_NO_THROW; 409 410 /**411 * Allocate read+write+execute memory to the exec heap.412 *413 * This API is specific to AMD64 and Linux/GNU. A kernel module that desires to414 * use RTMemExecAlloc on AMD64 Linux/GNU will have to initialize some allocated415 * memory in the module range if it wishes for GCC generated code to work. GCC416 * can only generate modules that work in the address range ~2GB to ~0 currently.417 * As RTR0MemExecDonate() does not work if CONFIG_DEBUG_SET_MODULE_RONX is418 * enabled, use a different approach (only very recent Linux kernels).419 *420 * The API only accept one single initialization.421 *422 * @returns IPRT status code.423 * @param cb The size of the memory block.424 */425 RTR0DECL(int) RTR0MemExecInit(size_t cb) RT_NO_THROW;426 409 #endif /* R0+AMD64+LINUX */ 427 410
Note:
See TracChangeset
for help on using the changeset viewer.