Changeset 3305 in vbox for trunk/src/VBox/Runtime
- Timestamp:
- Jun 26, 2007 7:39:14 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/linux/alloc-r0drv-linux.c
r2981 r3305 253 253 254 254 SetPageReserved(&paPages[iPage]); 255 #if LINUX_VERSION_CODE > KERNEL_VERSION(2, 4, 20) /** @todo find the exact kernel where change_page_attr was introduced. */ 255 256 if (pgprot_val(MY_PAGE_KERNEL_EXEC) != pgprot_val(PAGE_KERNEL)) 256 257 MY_CHANGE_PAGE_ATTR(&paPages[iPage], 1, MY_PAGE_KERNEL_EXEC); 258 #endif 257 259 } 258 260 *pPhys = page_to_phys(paPages); … … 295 297 { 296 298 ClearPageReserved(&paPages[iPage]); 299 #if LINUX_VERSION_CODE > KERNEL_VERSION(2, 4, 20) /** @todo find the exact kernel where change_page_attr was introduced. */ 297 300 if (pgprot_val(MY_PAGE_KERNEL_EXEC) != pgprot_val(PAGE_KERNEL)) 298 301 MY_CHANGE_PAGE_ATTR(&paPages[iPage], 1, PAGE_KERNEL); 302 #endif 299 303 } 300 304 __free_pages(paPages, cOrder);
Note:
See TracChangeset
for help on using the changeset viewer.