Changeset b4ffe5bc in mainline
- Timestamp:
- 2011-05-22T19:33:15Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2bdf8313
- Parents:
- c99693a
- Location:
- kernel/generic/src/mm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/mm/backend_anon.c
rc99693a rb4ffe5bc 122 122 page_table_lock(area->as, false); 123 123 pte = page_mapping_find(area->as, 124 base + j * PAGE_SIZE, false);124 base + P2SZ(j), false); 125 125 ASSERT(pte && PTE_VALID(pte) && 126 126 PTE_PRESENT(pte)); 127 127 btree_insert(&area->sh_info->pagemap, 128 (base + j * PAGE_SIZE) - area->base,128 (base + P2SZ(j)) - area->base, 129 129 (void *) PTE_GET_FRAME(pte), NULL); 130 130 page_table_unlock(area->as, false); -
kernel/generic/src/mm/backend_elf.c
rc99693a rb4ffe5bc 170 170 if (!(area->flags & AS_AREA_WRITE)) 171 171 if (base >= entry->p_vaddr && 172 base + count * PAGE_SIZE<= start_anon)172 base + P2SZ(count) <= start_anon) 173 173 continue; 174 174 … … 182 182 if (!(area->flags & AS_AREA_WRITE)) 183 183 if (base >= entry->p_vaddr && 184 base + (j + 1) * PAGE_SIZE <= 185 start_anon) 184 base + P2SZ(j + 1) <= start_anon) 186 185 continue; 187 186 188 187 page_table_lock(area->as, false); 189 188 pte = page_mapping_find(area->as, 190 base + j * PAGE_SIZE, false);189 base + P2SZ(j), false); 191 190 ASSERT(pte && PTE_VALID(pte) && 192 191 PTE_PRESENT(pte)); 193 192 btree_insert(&area->sh_info->pagemap, 194 (base + j * PAGE_SIZE) - area->base,193 (base + P2SZ(j)) - area->base, 195 194 (void *) PTE_GET_FRAME(pte), NULL); 196 195 page_table_unlock(area->as, false);
Note:
See TracChangeset
for help on using the changeset viewer.