VirtualBox

Changeset 1890 in vbox for trunk/src/VBox/VMM/MMPhys.cpp


Ignore:
Timestamp:
Apr 3, 2007 4:04:19 PM (18 years ago)
Author:
vboxsync
Message:

Attempt to fix ALSA on Linux kernels <= 2.6.17: use mmap not memalign for allocating pages. Use madvise or mprotect to separater VM area structs inside the kernel. Most SUP* functions work on cPages now (not cBytes anymore). The free functions take a cPages parameter which is used for munmap on Linux.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/MMPhys.cpp

    r323 r1890  
    412412            rc = MMR3PhysRegister(pVM, pvPages, GCPhys, cbRange, MM_RAM_FLAGS_RESERVED, pszDesc);
    413413            if (VBOX_FAILURE(rc))
    414                 SUPPageFree(pvPages);
     414                SUPPageFree(pvPages, cbRange >> PAGE_SHIFT);
    415415        }
    416416        return rc;
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