VirtualBox

Changeset 97905 in vbox for trunk/include


Ignore:
Timestamp:
Dec 29, 2022 6:22:23 PM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
154995
Message:

IPRT,SUPDrv: Dropping RTR0MemExecDonate and associated SUPDrv-linux code, it's not needed since linux started using RTR0MemObjAllocPage for r0 images. bugref:9801

Location:
trunk/include/iprt
Files:
2 edited

Legend:

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

    r97646 r97905  
    18661866# define RTR0Init                                       RT_MANGLER(RTR0Init)                   /* r0drv */
    18671867# define RTR0MemAreKrnlAndUsrDifferent                  RT_MANGLER(RTR0MemAreKrnlAndUsrDifferent) /* r0drv */
    1868 # define RTR0MemExecDonate                              RT_MANGLER(RTR0MemExecDonate)          /* r0drv */
    18691868# define RTR0MemKernelIsValidAddr                       RT_MANGLER(RTR0MemKernelIsValidAddr)   /* r0drv */
    18701869# define RTR0MemObjAddress                              RT_MANGLER(RTR0MemObjAddress)          /* r0drv */
  • trunk/include/iprt/mem.h

    r96407 r97905  
    467467RTDECL(void)    RTMemExecFree(void *pv, size_t cb) RT_NO_THROW_PROTO;
    468468
    469 #if defined(IN_RING0) && defined(RT_ARCH_AMD64) && defined(RT_OS_LINUX)
    470 /**
    471  * Donate read+write+execute memory to the exec heap.
    472  *
    473  * This API is specific to AMD64 and Linux/GNU. A kernel module that desires to
    474  * use RTMemExecAlloc on AMD64 Linux/GNU will have to donate some statically
    475  * allocated memory in the module if it wishes for GCC generated code to work.
    476  * GCC can only generate modules that work in the address range ~2GB to ~0
    477  * currently.
    478  *
    479  * The API only accept one single donation.
    480  *
    481  * @returns IPRT status code.
    482  * @param   pvMemory    Pointer to the memory block.
    483  * @param   cb          The size of the memory block.
    484  */
    485 RTR0DECL(int) RTR0MemExecDonate(void *pvMemory, size_t cb) RT_NO_THROW_PROTO;
    486 #endif /* R0+AMD64+LINUX */
    487 
    488469/**
    489470 * Allocate page aligned memory with default tag.
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