Changeset 3672 in vbox for trunk/src/VBox/HostDrivers/Support/linux/SUPDrv-linux.c
- Timestamp:
- Jul 17, 2007 12:39:30 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/linux/SUPDrv-linux.c
r3393 r3672 121 121 * This sucks soooo badly on x86! Why don't they export __PAGE_KERNEL_EXEC so PAGE_KERNEL_EXEC would be usable? 122 122 */ 123 #if defined( __AMD64__)123 #if defined(RT_ARCH_AMD64) 124 124 # define MY_PAGE_KERNEL_EXEC PAGE_KERNEL_EXEC 125 125 #elif defined(PAGE_KERNEL_EXEC) && defined(CONFIG_X86_PAE) … … 149 149 # endif 150 150 151 # ifndef __AMD64__151 # ifndef RT_ARCH_AMD64 152 152 /* In 2.6.9-22.ELsmp we have to call change_page_attr() twice when changing 153 153 * the page attributes from PAGE_KERNEL to something else, because there appears … … 170 170 171 171 #ifndef MY_CHANGE_PAGE_ATTR 172 # ifdef __AMD64__/** @todo This is a cheap hack, but it'll get around that 'else BUG();' in __change_page_attr(). */172 # ifdef RT_ARCH_AMD64 /** @todo This is a cheap hack, but it'll get around that 'else BUG();' in __change_page_attr(). */ 173 173 # define MY_CHANGE_PAGE_ATTR(pPages, cPages, prot) \ 174 174 do { \ … … 205 205 * and disabled on i386. 206 206 */ 207 # if defined( __AMD64__)207 # if defined(RT_ARCH_AMD64) 208 208 # if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 21) 209 209 # define DO_DISABLE_NMI 1 … … 267 267 #define DEVICE_NAME "vboxdrv" 268 268 269 #ifdef __AMD64__269 #ifdef RT_ARCH_AMD64 270 270 /** 271 271 * Memory for the executable memory heap (in IPRT). … … 608 608 if (RT_SUCCESS(rc)) 609 609 { 610 #ifdef __AMD64__610 #ifdef RT_ARCH_AMD64 611 611 rc = RTR0MemExecDonate(&g_abExecMemory[0], sizeof(g_abExecMemory)); 612 612 #endif … … 1025 1025 * Allocate page pointer array. 1026 1026 */ 1027 #ifdef __AMD64__/** @todo check out if there is a correct way of getting memory below 4GB (physically). */1027 #ifdef RT_ARCH_AMD64 /** @todo check out if there is a correct way of getting memory below 4GB (physically). */ 1028 1028 paPages = alloc_pages(GFP_DMA, cOrder); 1029 1029 #else
Note:
See TracChangeset
for help on using the changeset viewer.