VirtualBox

Changeset 40894 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Apr 12, 2012 2:40:45 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
77439
Message:

IPRT/SUPDrv: Don't create a fixed sized heap if we don't have to, use get_vm_area and friends for each request instead.

Location:
trunk/include/iprt
Files:
2 edited

Legend:

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

    r40807 r40894  
    982982# define RTR0MemAreKrnlAndUsrDifferent                  RT_MANGLER(RTR0MemAreKrnlAndUsrDifferent) /* r0drv */
    983983# define RTR0MemExecDonate                              RT_MANGLER(RTR0MemExecDonate)          /* r0drv */
    984 # define RTR0MemExecInit                                RT_MANGLER(RTR0MemExecInit)            /* r0drv */
    985984# define RTR0MemKernelIsValidAddr                       RT_MANGLER(RTR0MemKernelIsValidAddr)   /* r0drv */
    986985# define RTR0MemObjAddress                              RT_MANGLER(RTR0MemObjAddress)          /* r0drv */
  • trunk/include/iprt/mem.h

    r40869 r40894  
    407407 */
    408408RTR0DECL(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 to
    414  * use RTMemExecAlloc on AMD64 Linux/GNU will have to initialize some allocated
    415  * memory in the module range if it wishes for GCC generated code to work. GCC
    416  * 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 is
    418  * 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;
    426409#endif /* R0+AMD64+LINUX */
    427410
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