VirtualBox

Ignore:
Timestamp:
Mar 10, 2008 11:16:36 AM (17 years ago)
Author:
vboxsync
Message:

not needed here anymore (stuff now done in Runtime/r0drv)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/linux/SUPDrv-linux.c

    r7272 r7396  
    142142# endif
    143143
    144 # ifndef RT_ARCH_AMD64
    145 /* In 2.6.9-22.ELsmp we have to call change_page_attr() twice when changing
    146  * the page attributes from PAGE_KERNEL to something else, because there appears
    147  * to be a bug in one of the many patches that redhat applied.
    148  * It should be safe to do this on less buggy linux kernels too. ;-)
    149  */
    150 #  define MY_CHANGE_PAGE_ATTR(pPages, cPages, prot) \
    151     do { \
    152         if (pgprot_val(prot) != pgprot_val(PAGE_KERNEL)) \
    153             change_page_attr(pPages, cPages, prot); \
    154         change_page_attr(pPages, cPages, prot); \
    155     } while (0)
    156 # endif
    157144#endif /* !NO_REDHAT_HACKS */
    158145
     
    160147#ifndef MY_DO_MUNMAP
    161148# define MY_DO_MUNMAP(a,b,c) do_munmap(a, b, c)
    162 #endif
    163 
    164 #ifndef MY_CHANGE_PAGE_ATTR
    165 # ifdef RT_ARCH_AMD64 /** @todo This is a cheap hack, but it'll get around that 'else BUG();' in __change_page_attr().  */
    166 #  define MY_CHANGE_PAGE_ATTR(pPages, cPages, prot) \
    167     do { \
    168         change_page_attr(pPages, cPages, PAGE_KERNEL_NOCACHE); \
    169         change_page_attr(pPages, cPages, prot); \
    170     } while (0)
    171 # else
    172 #  define MY_CHANGE_PAGE_ATTR(pPages, cPages, prot) change_page_attr(pPages, cPages, prot)
    173 # endif
    174149#endif
    175150
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