Changeset 5892ec1 in mainline
- 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
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
abi/include/mm/as.h
r9a9c805 r5892ec1 37 37 38 38 /** Address space area flags. */ 39 #define AS_AREA_READ 0x0140 #define AS_AREA_WRITE 0x0241 #define AS_AREA_EXEC 0x0442 #define AS_AREA_CACHEABLE 0x0843 #define AS_AREA_GUARD 0x1044 #define AS_AREA_ NORESERVE0x2039 #define AS_AREA_READ 0x01 40 #define AS_AREA_WRITE 0x02 41 #define AS_AREA_EXEC 0x04 42 #define AS_AREA_CACHEABLE 0x08 43 #define AS_AREA_GUARD 0x10 44 #define AS_AREA_LATE_RESERVE 0x20 45 45 46 46 /** Address space area info exported to uspace. */ -
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); -
uspace/lib/c/generic/fibril.c
r9a9c805 r5892ec1 274 274 FIBRIL_INITIAL_STACK_PAGES_NO * getpagesize(), 275 275 AS_AREA_READ | AS_AREA_WRITE | AS_AREA_CACHEABLE | AS_AREA_GUARD | 276 AS_AREA_ NORESERVE);276 AS_AREA_LATE_RESERVE); 277 277 if (fibril->stack == (void *) -1) { 278 278 fibril_teardown(fibril);
Note:
See TracChangeset
for help on using the changeset viewer.