Changes in kernel/generic/src/mm/backend_elf.c [b4ffe5bc:8f6c6264] in mainline
- File:
-
- 1 edited
-
kernel/generic/src/mm/backend_elf.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/mm/backend_elf.c
rb4ffe5bc r8f6c6264 170 170 if (!(area->flags & AS_AREA_WRITE)) 171 171 if (base >= entry->p_vaddr && 172 base + P2SZ(count)<= start_anon)172 base + count * PAGE_SIZE <= start_anon) 173 173 continue; 174 174 … … 182 182 if (!(area->flags & AS_AREA_WRITE)) 183 183 if (base >= entry->p_vaddr && 184 base + P2SZ(j + 1) <= start_anon) 184 base + (j + 1) * PAGE_SIZE <= 185 start_anon) 185 186 continue; 186 187 187 188 page_table_lock(area->as, false); 188 189 pte = page_mapping_find(area->as, 189 base + P2SZ(j), false);190 base + j * PAGE_SIZE); 190 191 ASSERT(pte && PTE_VALID(pte) && 191 192 PTE_PRESENT(pte)); 192 193 btree_insert(&area->sh_info->pagemap, 193 (base + P2SZ(j)) - area->base,194 (base + j * PAGE_SIZE) - area->base, 194 195 (void *) PTE_GET_FRAME(pte), NULL); 195 196 page_table_unlock(area->as, false);
Note:
See TracChangeset
for help on using the changeset viewer.
