Changeset e394b736 in mainline
- Timestamp:
- 2011-04-16T13:07:49Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ceac698
- Parents:
- 8a2474f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/mm/as.c
r8a2474f re394b736 443 443 else 444 444 memsetb(&area->backend_data, sizeof(area->backend_data), 0); 445 446 if (area->backend && area->backend->create) { 447 if (!area->backend->create(area)) { 448 free(area); 449 mutex_unlock(&as->lock); 450 return NULL; 451 } 452 } 445 453 446 454 btree_create(&area->used_space); … … 686 694 } 687 695 696 if (area->backend && area->backend->resize) { 697 if (!area->backend->resize(area, pages)) { 698 mutex_unlock(&area->lock); 699 mutex_unlock(&as->lock); 700 return ENOMEM; 701 } 702 } 703 688 704 area->pages = pages; 689 705 … … 752 768 return ENOENT; 753 769 } 770 771 if (area->backend && area->backend->destroy) 772 area->backend->destroy(area); 754 773 755 774 uintptr_t base = area->base;
Note:
See TracChangeset
for help on using the changeset viewer.