Changeset 7396 in vbox for trunk/src/VBox/HostDrivers/Support
- Timestamp:
- Mar 10, 2008 11:16:36 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/linux/SUPDrv-linux.c
r7272 r7396 142 142 # endif 143 143 144 # ifndef RT_ARCH_AMD64145 /* In 2.6.9-22.ELsmp we have to call change_page_attr() twice when changing146 * the page attributes from PAGE_KERNEL to something else, because there appears147 * 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 # endif157 144 #endif /* !NO_REDHAT_HACKS */ 158 145 … … 160 147 #ifndef MY_DO_MUNMAP 161 148 # define MY_DO_MUNMAP(a,b,c) do_munmap(a, b, c) 162 #endif163 164 #ifndef MY_CHANGE_PAGE_ATTR165 # 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 # else172 # define MY_CHANGE_PAGE_ATTR(pPages, cPages, prot) change_page_attr(pPages, cPages, prot)173 # endif174 149 #endif 175 150
Note:
See TracChangeset
for help on using the changeset viewer.