Changeset 35294 in vbox for trunk/include/iprt
- Timestamp:
- Dec 22, 2010 12:13:10 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 69143
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/mem.h
r34784 r35294 401 401 */ 402 402 RTR0DECL(int) RTR0MemExecDonate(void *pvMemory, size_t cb) RT_NO_THROW; 403 404 /** 405 * Allocate read+write+execute memory to the exec heap. 406 * 407 * This API is specific to AMD64 and Linux/GNU. A kernel module that desires to 408 * use RTMemExecAlloc on AMD64 Linux/GNU will have to initialize some allocated 409 * memory in the module range if it wishes for GCC generated code to work. GCC 410 * can only generate modules that work in the address range ~2GB to ~0 currently. 411 * As RTR0MemExecDonate() does not work if CONFIG_DEBUG_SET_MODULE_RONX is 412 * enabled, use a different approach (only very recent Linux kernels). 413 * 414 * The API only accept one single initialization. 415 * 416 * @returns IPRT status code. 417 * @param cb The size of the memory block. 418 */ 419 RTR0DECL(int) RTR0MemExecInit(size_t cb) RT_NO_THROW; 403 420 #endif /* R0+AMD64+LINUX */ 404 421
Note:
See TracChangeset
for help on using the changeset viewer.