Changes in kernel/generic/src/mm/as.c [57355a40:94795812] in mainline
- File:
-
- 1 edited
-
kernel/generic/src/mm/as.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/mm/as.c
r57355a40 r94795812 426 426 /* 427 427 * So far, the area does not conflict with other areas. 428 * Check if it is contained in the useraddress space.428 * Check if it doesn't conflict with kernel address space. 429 429 */ 430 430 if (!KERNEL_ADDRESS_SPACE_SHADOWED) { 431 return iswithin(USER_ADDRESS_SPACE_START, 432 (USER_ADDRESS_SPACE_END - USER_ADDRESS_SPACE_START) + 1, 433 addr, P2SZ(count)); 431 return !overlaps(addr, P2SZ(count), KERNEL_ADDRESS_SPACE_START, 432 KERNEL_ADDRESS_SPACE_END - KERNEL_ADDRESS_SPACE_START); 434 433 } 435 434 … … 697 696 return ENOENT; 698 697 } 699 700 if (!area->backend->is_resizable(area)) { 701 /* 702 * The backend does not support resizing for this area. 698 699 if (area->backend == &phys_backend) { 700 /* 701 * Remapping of address space areas associated 702 * with memory mapped devices is not supported. 703 703 */ 704 704 mutex_unlock(&area->lock); … … 1057 1057 } 1058 1058 1059 if (!src_area->backend->is_shareable(src_area)) { 1060 /* 1061 * The backend does not permit sharing of this area. 1059 if ((!src_area->backend) || (!src_area->backend->share)) { 1060 /* 1061 * There is no backend or the backend does not 1062 * know how to share the area. 1062 1063 */ 1063 1064 mutex_unlock(&src_area->lock);
Note:
See TracChangeset
for help on using the changeset viewer.
