VirtualBox

vbox的更動 12360 路徑 trunk/src/VBox/Runtime/r0drv


忽略:
時間撮記:
2008-9-10 下午03:02:01 (16 年 以前)
作者:
vboxsync
訊息:

2.6.27 vboxdrv compile fix

位置:
trunk/src/VBox/Runtime/r0drv/linux
檔案:
修改 2 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Runtime/r0drv/linux/alloc-r0drv-linux.c

    r8245 r12360  
    132132        else
    133133# 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);
    135135
    136136#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);
    139138#else
    140139        pHdr = (PRTMEMHDR)vmalloc(cb + sizeof(*pHdr));
  • trunk/src/VBox/Runtime/r0drv/linux/the-linux-kernel.h

    r10935 r12360  
    188188# define MY_PAGE_KERNEL_EXEC    PAGE_KERNEL_EXEC
    189189#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
    191196#else
    192197# define MY_PAGE_KERNEL_EXEC    PAGE_KERNEL
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette