VirtualBox

Ignore:
Timestamp:
Sep 21, 2010 4:51:50 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
66089
Message:

IPRT: started on some internal ring-0 alloc api.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/linux/alloc-r0drv-linux.c

    r28800 r32674  
    113113PRTMEMHDR rtR0MemAlloc(size_t cb, uint32_t fFlags)
    114114{
     115    PRTMEMHDR pHdr;
     116
    115117    /*
    116118     * Allocate.
    117119     */
    118     PRTMEMHDR pHdr;
    119120    if (fFlags & RTMEMHDR_FLAG_EXEC)
    120121    {
     122        AssertReturn(!(fFlags & RTMEMHDR_FLAG_ANY_CTX), NULL);
     123
    121124#if defined(RT_ARCH_AMD64)
    122125# ifdef RTMEMALLOC_EXEC_HEAP
     
    143146    else
    144147    {
    145         if (cb <= PAGE_SIZE)
     148        if (cb <= PAGE_SIZE || (fFlags & RTMEMHDR_FLAG_ANY_CTX))
    146149        {
    147150            fFlags |= RTMEMHDR_FLAG_KMALLOC;
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