Changeset a33f0a6 in mainline for kernel/generic/src/mm/backend_anon.c
- Timestamp:
- 2011-08-03T17:34:57Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/fix-logger-deadlock, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1940326
- Parents:
- 52a79081 (diff), 3fab770 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
kernel/generic/src/mm/backend_anon.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/mm/backend_anon.c
r52a79081 ra33f0a6 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.
