VirtualBox

Changeset 3305 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
Jun 26, 2007 7:39:14 PM (18 years ago)
Author:
vboxsync
Message:

change_page_attr was introduced somewhere in the 2.4.21..28 range. (Don't know exactly when since lxr.linux.no only has 2.4.20 and 2.4.28, and I don't have any other sources handy.)

File:
1 edited

Legend:

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

    r2981 r3305  
    253253
    254254            SetPageReserved(&paPages[iPage]);
     255#if LINUX_VERSION_CODE > KERNEL_VERSION(2, 4, 20) /** @todo find the exact kernel where change_page_attr was introduced. */
    255256            if (pgprot_val(MY_PAGE_KERNEL_EXEC) != pgprot_val(PAGE_KERNEL))
    256257                MY_CHANGE_PAGE_ATTR(&paPages[iPage], 1, MY_PAGE_KERNEL_EXEC);
     258#endif
    257259        }
    258260        *pPhys = page_to_phys(paPages);
     
    295297        {
    296298            ClearPageReserved(&paPages[iPage]);
     299#if LINUX_VERSION_CODE > KERNEL_VERSION(2, 4, 20) /** @todo find the exact kernel where change_page_attr was introduced. */
    297300            if (pgprot_val(MY_PAGE_KERNEL_EXEC) != pgprot_val(PAGE_KERNEL))
    298301                MY_CHANGE_PAGE_ATTR(&paPages[iPage], 1, PAGE_KERNEL);
     302#endif
    299303        }
    300304        __free_pages(paPages, cOrder);
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