Changeset 26864 in vbox for trunk/src/VBox/Runtime/r0drv/linux/memobj-r0drv-linux.c
- Timestamp:
- Feb 26, 2010 3:39:29 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/linux/memobj-r0drv-linux.c
r26847 r26864 702 702 int rtR0MemObjNativeAllocPhys(PPRTR0MEMOBJINTERNAL ppMem, size_t cb, RTHCPHYS PhysHighest, size_t uAlignment) 703 703 { 704 /** @todo alignment */ 705 if (uAlignment != PAGE_SIZE) 704 /* 705 * Contiguous physical memory: Check for the alignment of the physical address. 706 * Use the knowledge that we are using alloc_pages(flags, order) for allocating 707 * contiguous physical memory which is always aligned at 2^(PAGE_SHIFT+order). 708 */ 709 if (uAlignment > cb) 706 710 return VERR_NOT_SUPPORTED; 707 711 … … 712 716 int rtR0MemObjNativeAllocPhysNC(PPRTR0MEMOBJINTERNAL ppMem, size_t cb, RTHCPHYS PhysHighest) 713 717 { 718 /* 719 * Non-contiguous memory. 720 */ 714 721 return rtR0MemObjLinuxAllocPhysSub(ppMem, RTR0MEMOBJTYPE_PHYS_NC, cb, PhysHighest); 715 722 }
Note:
See TracChangeset
for help on using the changeset viewer.