Changeset 5892ec1 in mainline for kernel/generic/src/mm/backend_anon.c
- Timestamp:
- 2012-11-07T11:01:22Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c387838
- Parents:
- 9a9c805
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/mm/backend_anon.c
r9a9c805 r5892ec1 74 74 bool anon_create(as_area_t *area) 75 75 { 76 if (area->flags & AS_AREA_ NORESERVE)76 if (area->flags & AS_AREA_LATE_RESERVE) 77 77 return true; 78 78 … … 82 82 bool anon_resize(as_area_t *area, size_t new_pages) 83 83 { 84 if (area->flags & AS_AREA_ NORESERVE)84 if (area->flags & AS_AREA_LATE_RESERVE) 85 85 return true; 86 86 … … 106 106 ASSERT(mutex_locked(&area->as->lock)); 107 107 ASSERT(mutex_locked(&area->lock)); 108 ASSERT(!(area->flags & AS_AREA_ NORESERVE));108 ASSERT(!(area->flags & AS_AREA_LATE_RESERVE)); 109 109 110 110 /* … … 146 146 void anon_destroy(as_area_t *area) 147 147 { 148 if (area->flags & AS_AREA_ NORESERVE)148 if (area->flags & AS_AREA_LATE_RESERVE) 149 149 return; 150 150 … … 236 236 */ 237 237 238 if (area->flags & AS_AREA_ NORESERVE) {238 if (area->flags & AS_AREA_LATE_RESERVE) { 239 239 /* 240 240 * Reserve the memory for this page now. … … 274 274 ASSERT(mutex_locked(&area->lock)); 275 275 276 if (area->flags & AS_AREA_ NORESERVE) {277 /* 278 * In case of the NORESERVE areas, physical memory will not be279 * unreserved when the area is destroyed so we need to use the280 * normal unreserving frame_free().276 if (area->flags & AS_AREA_LATE_RESERVE) { 277 /* 278 * In case of the late reserve areas, physical memory will not 279 * be unreserved when the area is destroyed so we need to use 280 * the normal unreserving frame_free(). 281 281 */ 282 282 frame_free(frame);
Note:
See TracChangeset
for help on using the changeset viewer.