Changeset c9d2235b in mainline
- Timestamp:
- 2006-06-03T14:32:26Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 586262f
- Parents:
- f9b2f305
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/src/mm/backend_elf.c
rf9b2f305 rc9d2235b 108 108 } 109 109 if (frame || found) { 110 frame_reference_add(ADDR2PFN(frame)); 110 111 page_mapping_insert(AS, addr, frame, as_area_get_flags(area)); 112 frame_reference_add(ADDR2PFN(PTE_GET_FRAME(pte))); 111 113 if (!used_space_insert(area, ALIGN_DOWN(addr, PAGE_SIZE), 1)) 112 114 panic("Could not insert used space.\n"); … … 134 136 135 137 if (area->sh_info) { 138 frame_reference_add(ADDR2PFN(frame)); 136 139 btree_insert(&area->sh_info->pagemap, ALIGN_DOWN(addr, PAGE_SIZE) - area->base, 137 140 (void *) frame, leaf); … … 152 155 153 156 if (area->sh_info) { 157 frame_reference_add(ADDR2PFN(frame)); 154 158 btree_insert(&area->sh_info->pagemap, ALIGN_DOWN(addr, PAGE_SIZE) - area->base, 155 159 (void *) frame, leaf); … … 169 173 170 174 if (area->sh_info) { 175 frame_reference_add(ADDR2PFN(frame)); 171 176 btree_insert(&area->sh_info->pagemap, ALIGN_DOWN(addr, PAGE_SIZE) - area->base, 172 177 (void *) frame, leaf); … … 290 295 (void *) PTE_GET_FRAME(pte), NULL); 291 296 page_table_unlock(area->as, false); 297 frame_reference_add(ADDR2PFN(PTE_GET_FRAME(pte))); 292 298 } 293 299
Note:
See TracChangeset
for help on using the changeset viewer.