vbox的更動 12360 路徑 trunk/src/VBox/Runtime/r0drv
- 時間撮記:
- 2008-9-10 下午03:02:01 (16 年 以前)
- 位置:
- trunk/src/VBox/Runtime/r0drv/linux
- 檔案:
-
- 修改 2 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
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
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器