VirtualBox

Changeset 35294 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Dec 22, 2010 12:13:10 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
69143
Message:

Linux hosts: quick fix for CONFIG_DEBUG_SET_MODULE_RONX

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/mem.h

    r34784 r35294  
    401401 */
    402402RTR0DECL(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 */
     419RTR0DECL(int) RTR0MemExecInit(size_t cb) RT_NO_THROW;
    403420#endif /* R0+AMD64+LINUX */
    404421
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette