VirtualBox

Ignore:
Timestamp:
Aug 15, 2007 7:41:26 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
23645
Message:

RTR0MemGetAddressR3 & RTR0MemObjLockUser. Linux memobj impl.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/linux/the-linux-kernel.h

    r4071 r4155  
    146146
    147147/*
    148  * This sucks soooo badly! Why don't they export __PAGE_KERNEL_EXEC so PAGE_KERNEL_EXEC would be usable?
    149  */
    150 #if defined(PAGE_KERNEL_EXEC) && defined(CONFIG_X86_PAE)
    151 # define MY_PAGE_KERNEL_EXEC __pgprot(cpu_has_pge ? _PAGE_KERNEL_EXEC | _PAGE_GLOBAL : _PAGE_KERNEL_EXEC)
     148 * This sucks soooo badly on x86! Why don't they export __PAGE_KERNEL_EXEC so PAGE_KERNEL_EXEC would be usable?
     149 */
     150#if defined(RT_ARCH_AMD64)
     151# define MY_PAGE_KERNEL_EXEC    PAGE_KERNEL_EXEC
     152#elif defined(PAGE_KERNEL_EXEC) && defined(CONFIG_X86_PAE)
     153# define MY_PAGE_KERNEL_EXEC    __pgprot(cpu_has_pge ? _PAGE_KERNEL_EXEC | _PAGE_GLOBAL : _PAGE_KERNEL_EXEC)
    152154#else
    153 # define MY_PAGE_KERNEL_EXEC PAGE_KERNEL
     155# define MY_PAGE_KERNEL_EXEC    PAGE_KERNEL
    154156#endif
    155157
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