VirtualBox

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

File vbox-r7168-chpgattr-out.patch, 1.4 kB (added by hircus, 10 months ago)

Patch against vbox trunk (r7168)

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

    old new  
    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 
Download the file.

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy