VirtualBox

Ignore:
Timestamp:
Apr 12, 2012 2:40:45 PM (13 years ago)
Author:
vboxsync
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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/linux/SUPDrv-linux.c

    r38976 r40894  
    309309        if (RT_SUCCESS(rc))
    310310        {
    311 #ifdef RT_ARCH_AMD64
    312 # ifdef CONFIG_DEBUG_SET_MODULE_RONX
    313             rc = RTR0MemExecInit(1572864 /* 1.5MB */);
    314 # else
     311#if defined(RT_ARCH_AMD64) && LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 23)
    315312            rc = RTR0MemExecDonate(&g_abExecMemory[0], sizeof(g_abExecMemory));
    316313            printk(KERN_DEBUG "VBoxDrv: dbg - g_abExecMemory=%p\n", (void *)&g_abExecMemory[0]);
    317 # endif
    318314#endif
    319315            Log(("VBoxDrv::ModuleInit\n"));
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