Changeset b838fdf in mainline
- Timestamp:
- 2011-01-14T20:09:24Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 630a8ef
- Parents:
- e608cbe
- Location:
- kernel/generic/src/mm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/mm/backend_anon.c
re608cbe rb838fdf 115 115 } 116 116 if (allocate) { 117 frame = (uintptr_t) frame_alloc(ONE_FRAME, 0); 117 frame = (uintptr_t) frame_alloc_noreserve( 118 ONE_FRAME, 0); 118 119 memsetb((void *) PA2KA(frame), FRAME_SIZE, 0); 119 120 … … 145 146 * the different causes 146 147 */ 147 frame = (uintptr_t) frame_alloc (ONE_FRAME, 0);148 frame = (uintptr_t) frame_alloc_noreserve(ONE_FRAME, 0); 148 149 memsetb((void *) PA2KA(frame), FRAME_SIZE, 0); 149 150 } … … 174 175 ASSERT(mutex_locked(&area->lock)); 175 176 176 frame_free (frame);177 frame_free_noreserve(frame); 177 178 } 178 179 -
kernel/generic/src/mm/backend_elf.c
re608cbe rb838fdf 153 153 */ 154 154 if (entry->p_flags & PF_W) { 155 frame = (uintptr_t)frame_alloc (ONE_FRAME, 0);155 frame = (uintptr_t)frame_alloc_noreserve(ONE_FRAME, 0); 156 156 memcpy((void *) PA2KA(frame), 157 157 (void *) (base + i * FRAME_SIZE), FRAME_SIZE); … … 171 171 * and cleared. 172 172 */ 173 frame = (uintptr_t) frame_alloc(ONE_FRAME, 0);173 frame = (uintptr_t) frame_alloc_noreserve(ONE_FRAME, 0); 174 174 memsetb((void *) PA2KA(frame), FRAME_SIZE, 0); 175 175 dirty = true; … … 193 193 pad_hi = 0; 194 194 195 frame = (uintptr_t) frame_alloc(ONE_FRAME, 0);195 frame = (uintptr_t) frame_alloc_noreserve(ONE_FRAME, 0); 196 196 memcpy((void *) (PA2KA(frame) + pad_lo), 197 197 (void *) (base + i * FRAME_SIZE + pad_lo), … … 252 252 * data. 253 253 */ 254 frame_free (frame);254 frame_free_noreserve(frame); 255 255 } 256 256 } else { … … 260 260 * anonymous). In any case, a frame needs to be freed. 261 261 */ 262 frame_free (frame);262 frame_free_noreserve(frame); 263 263 } 264 264 }
Note:
See TracChangeset
for help on using the changeset viewer.