Changeset 22531 in vbox for trunk/src/VBox/Runtime/r0drv/linux/alloc-r0drv-linux.c
- Timestamp:
- Aug 27, 2009 3:17:53 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/linux/alloc-r0drv-linux.c
r22508 r22531 240 240 cOrder = CalcPowerOf2Order(cPages); 241 241 #if (defined(RT_ARCH_AMD64) || defined(CONFIG_X86_PAE)) && defined(GFP_DMA32) 242 /* ZONE_DMA32: 0-4GB */ 242 243 paPages = alloc_pages(GFP_DMA32, cOrder); 243 244 if (!paPages) 244 245 #endif 245 246 #ifdef RT_ARCH_AMD64 247 /* ZONE_DMA; 0-16MB */ 246 248 paPages = alloc_pages(GFP_DMA, cOrder); 247 249 #else 248 # if defined(CONFIG_X86_PAE) 249 /** GFP_USER can return page frames above 4GB on PAE systems => GFP_DMA? */ 250 # endif 250 /* ZONE_NORMAL: 0-896MB */ 251 251 paPages = alloc_pages(GFP_USER, cOrder); 252 252 #endif
Note:
See TracChangeset
for help on using the changeset viewer.