Changes in kernel/generic/src/mm/backend_elf.c [38dc82d:83b6ba9f] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/mm/backend_elf.c
r38dc82d r83b6ba9f 184 184 185 185 for (j = 0; j < count; j++) { 186 pte_t pte; 187 bool found; 186 pte_t *pte; 188 187 189 188 /* … … 197 196 198 197 page_table_lock(area->as, false); 199 found = page_mapping_find(area->as, 200 base + P2SZ(j), false, &pte); 201 202 ASSERT(found); 203 ASSERT(PTE_VALID(&pte)); 204 ASSERT(PTE_PRESENT(&pte)); 205 198 pte = page_mapping_find(area->as, 199 base + P2SZ(j), false); 200 ASSERT(pte && PTE_VALID(pte) && 201 PTE_PRESENT(pte)); 206 202 btree_insert(&area->sh_info->pagemap, 207 203 (base + P2SZ(j)) - area->base, 208 (void *) PTE_GET_FRAME( &pte), NULL);204 (void *) PTE_GET_FRAME(pte), NULL); 209 205 page_table_unlock(area->as, false); 210 206 211 pfn_t pfn = ADDR2PFN(PTE_GET_FRAME( &pte));207 pfn_t pfn = ADDR2PFN(PTE_GET_FRAME(pte)); 212 208 frame_reference_add(pfn); 213 209 } … … 339 335 dirty = true; 340 336 } else { 341 pte_t pte; 342 bool found; 343 344 found = page_mapping_find(AS_KERNEL, 345 base + i * FRAME_SIZE, true, &pte); 346 347 ASSERT(found); 348 ASSERT(PTE_PRESENT(&pte)); 349 350 frame = PTE_GET_FRAME(&pte); 337 pte_t *pte = page_mapping_find(AS_KERNEL, 338 base + i * FRAME_SIZE, true); 339 340 ASSERT(pte); 341 ASSERT(PTE_PRESENT(pte)); 342 343 frame = PTE_GET_FRAME(pte); 351 344 } 352 345 } else if (upage >= start_anon) {
Note:
See TracChangeset
for help on using the changeset viewer.