VirtualBox

Changeset 12360 in vbox for trunk/src/VBox/Runtime/r0drv


Ignore:
Timestamp:
Sep 10, 2008 3:02:01 PM (16 years ago)
Author:
vboxsync
Message:

2.6.27 vboxdrv compile fix

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  
    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
Note: See TracChangeset for help on using the changeset viewer.

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