Changeset 12360 in vbox for trunk/src/VBox/Runtime/r0drv
- Timestamp:
- Sep 10, 2008 3:02:01 PM (16 years ago)
- Location:
- trunk/src/VBox/Runtime/r0drv/linux
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/linux/alloc-r0drv-linux.c
r8245 r12360 132 132 else 133 133 # endif 134 pHdr = (PRTMEMHDR)__vmalloc(cb + sizeof(*pHdr), GFP_KERNEL | __GFP_HIGHMEM, PAGE_KERNEL_EXEC);134 pHdr = (PRTMEMHDR)__vmalloc(cb + sizeof(*pHdr), GFP_KERNEL | __GFP_HIGHMEM, MY_PAGE_KERNEL_EXEC); 135 135 136 136 #elif defined(PAGE_KERNEL_EXEC) && defined(CONFIG_X86_PAE) 137 pHdr = (PRTMEMHDR)__vmalloc(cb + sizeof(*pHdr), GFP_KERNEL | __GFP_HIGHMEM, 138 __pgprot(cpu_has_pge ? _PAGE_KERNEL_EXEC | _PAGE_GLOBAL : _PAGE_KERNEL_EXEC)); 137 pHdr = (PRTMEMHDR)__vmalloc(cb + sizeof(*pHdr), GFP_KERNEL | __GFP_HIGHMEM, MY_PAGE_KERNEL_EXEC); 139 138 #else 140 139 pHdr = (PRTMEMHDR)vmalloc(cb + sizeof(*pHdr)); -
trunk/src/VBox/Runtime/r0drv/linux/the-linux-kernel.h
r10935 r12360 188 188 # define MY_PAGE_KERNEL_EXEC PAGE_KERNEL_EXEC 189 189 #elif defined(PAGE_KERNEL_EXEC) && defined(CONFIG_X86_PAE) 190 # define MY_PAGE_KERNEL_EXEC __pgprot(cpu_has_pge ? _PAGE_KERNEL_EXEC | _PAGE_GLOBAL : _PAGE_KERNEL_EXEC) 190 # ifdef __PAGE_KERNEL_EXEC 191 /* >= 2.6.27 */ 192 # define MY_PAGE_KERNEL_EXEC __pgprot(cpu_has_pge ? __PAGE_KERNEL_EXEC | _PAGE_GLOBAL : __PAGE_KERNEL_EXEC) 193 # else 194 # define MY_PAGE_KERNEL_EXEC __pgprot(cpu_has_pge ? _PAGE_KERNEL_EXEC | _PAGE_GLOBAL : _PAGE_KERNEL_EXEC) 195 # endif 191 196 #else 192 197 # define MY_PAGE_KERNEL_EXEC PAGE_KERNEL
Note:
See TracChangeset
for help on using the changeset viewer.