VirtualBox

Changeset 331 in vbox for trunk/include/iprt/mem.h


Ignore:
Timestamp:
Jan 25, 2007 8:47:51 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
17884
Message:

Bool and AMD64 hacking.

File:
1 edited

Legend:

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

    r1 r331  
    157157 */
    158158RTDECL(void)      RTMemExecFree(void *pv);
     159
     160#if defined(IN_RING0) && defined(__AMD64__) && defined(__LINUX__)
     161/**
     162 * Donate read+write+execute memory to the exec heap.
     163 *
     164 * This API is specific to AMD64 and Linux/GNU. A kernel module that desires to
     165 * use RTMemExecAlloc on AMD64 Linux/GNU will have to donate some statically
     166 * allocated memory in the module if it wishes for GCC generated code to work.
     167 * GCC can only generate modules that work in the address range ~2GB to ~0
     168 * currently.
     169 *
     170 * The API only accept one single donation.
     171 *
     172 * @returns IPRT status code.
     173 * @param   pvMemory    Pointer to the memory block.
     174 * @param   cb          The size of the memory block.
     175 */
     176RTR0DECL(int) RTR0MemExecDonate(void *pvMemory, size_t cb);
     177#endif /* R0+AMD64+LINUX */
    159178
    160179/**
Note: See TracChangeset for help on using the changeset viewer.

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