Changes in kernel/generic/src/mm/backend_anon.c [38dc82d:83b6ba9f] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/mm/backend_anon.c
r38dc82d r83b6ba9f 131 131 132 132 for (j = 0; j < count; j++) { 133 pte_t pte; 134 bool found; 133 pte_t *pte; 135 134 136 135 page_table_lock(area->as, false); 137 found = page_mapping_find(area->as, 138 base + P2SZ(j), false, &pte); 139 140 ASSERT(found); 141 ASSERT(PTE_VALID(&pte)); 142 ASSERT(PTE_PRESENT(&pte)); 143 136 pte = page_mapping_find(area->as, 137 base + P2SZ(j), false); 138 ASSERT(pte && PTE_VALID(pte) && 139 PTE_PRESENT(pte)); 144 140 btree_insert(&area->sh_info->pagemap, 145 141 (base + P2SZ(j)) - area->base, 146 (void *) PTE_GET_FRAME( &pte), NULL);142 (void *) PTE_GET_FRAME(pte), NULL); 147 143 page_table_unlock(area->as, false); 148 144 149 pfn_t pfn = ADDR2PFN(PTE_GET_FRAME( &pte));145 pfn_t pfn = ADDR2PFN(PTE_GET_FRAME(pte)); 150 146 frame_reference_add(pfn); 151 147 }
Note:
See TracChangeset
for help on using the changeset viewer.