Changes in kernel/generic/src/mm/backend_anon.c [cda1378:55b77d9] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/mm/backend_anon.c
rcda1378 r55b77d9 50 50 #include <typedefs.h> 51 51 #include <align.h> 52 #include <memstr.h> 52 53 #include <arch.h> 53 54 … … 96 97 void anon_share(as_area_t *area) 97 98 { 98 link_t *cur;99 100 99 ASSERT(mutex_locked(&area->as->lock)); 101 100 ASSERT(mutex_locked(&area->lock)); … … 105 104 */ 106 105 mutex_lock(&area->sh_info->lock); 107 for (cur = area->used_space.leaf_head.next; 108 cur != &area->used_space.leaf_head; cur = cur->next) { 106 list_foreach(area->used_space.leaf_list, cur) { 109 107 btree_node_t *node; 110 108 unsigned int i; … … 121 119 page_table_lock(area->as, false); 122 120 pte = page_mapping_find(area->as, 123 base + j * PAGE_SIZE);121 base + P2SZ(j), false); 124 122 ASSERT(pte && PTE_VALID(pte) && 125 123 PTE_PRESENT(pte)); 126 124 btree_insert(&area->sh_info->pagemap, 127 (base + j * PAGE_SIZE) - area->base,125 (base + P2SZ(j)) - area->base, 128 126 (void *) PTE_GET_FRAME(pte), NULL); 129 127 page_table_unlock(area->as, false);
Note:
See TracChangeset
for help on using the changeset viewer.