VirtualBox

Ticket #1263: vbox-r7168-chpgattr-out.patch

File vbox-r7168-chpgattr-out.patch, 1.4 KB (added by Michel Salim, 17 years ago)

Patch against vbox trunk (r7168)

  • src/VBox/Runtime/r0drv/linux/alloc-r0drv-linux.c

     
    256256            }
    257257
    258258            SetPageReserved(&paPages[iPage]);
    259 #if LINUX_VERSION_CODE > KERNEL_VERSION(2, 4, 20) /** @todo find the exact kernel where change_page_attr was introduced. */
     259#if LINUX_VERSION_CODE > KERNEL_VERSION(2, 4, 20) && LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 25) /** @todo find the exact kernel where change_page_attr was introduced. */
    260260            if (pgprot_val(MY_PAGE_KERNEL_EXEC) != pgprot_val(PAGE_KERNEL))
    261261                MY_CHANGE_PAGE_ATTR(&paPages[iPage], 1, MY_PAGE_KERNEL_EXEC);
    262262#endif
     
    300300        for (iPage = 0; iPage < cPages; iPage++)
    301301        {
    302302            ClearPageReserved(&paPages[iPage]);
    303 #if LINUX_VERSION_CODE > KERNEL_VERSION(2, 4, 20) /** @todo find the exact kernel where change_page_attr was introduced. */
     303#if LINUX_VERSION_CODE > KERNEL_VERSION(2, 4, 20) && LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 25) /** @todo find the exact kernel where change_page_attr was introduced. */
    304304            if (pgprot_val(MY_PAGE_KERNEL_EXEC) != pgprot_val(PAGE_KERNEL))
    305305                MY_CHANGE_PAGE_ATTR(&paPages[iPage], 1, PAGE_KERNEL);
    306306#endif

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy