Ticket #1263: vbox-r7168-chpgattr-out.patch
| File vbox-r7168-chpgattr-out.patch, 1.4 KB (added by , 17 years ago) |
|---|
-
src/VBox/Runtime/r0drv/linux/alloc-r0drv-linux.c
256 256 } 257 257 258 258 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. */ 260 260 if (pgprot_val(MY_PAGE_KERNEL_EXEC) != pgprot_val(PAGE_KERNEL)) 261 261 MY_CHANGE_PAGE_ATTR(&paPages[iPage], 1, MY_PAGE_KERNEL_EXEC); 262 262 #endif … … 300 300 for (iPage = 0; iPage < cPages; iPage++) 301 301 { 302 302 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. */ 304 304 if (pgprot_val(MY_PAGE_KERNEL_EXEC) != pgprot_val(PAGE_KERNEL)) 305 305 MY_CHANGE_PAGE_ATTR(&paPages[iPage], 1, PAGE_KERNEL); 306 306 #endif

