Changeset a35b458 in mainline for kernel/generic/src/mm/backend_anon.c
- Timestamp:
- 2018-03-02T20:10:49Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f1380b7
- Parents:
- 3061bc1
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:38:31)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-02 20:10:49)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/mm/backend_anon.c
r3061bc1 ra35b458 125 125 node) { 126 126 unsigned int i; 127 127 128 128 for (i = 0; i < node->keys; i++) { 129 129 uintptr_t base = node->key[i]; 130 130 size_t count = (size_t) node->value[i]; 131 131 unsigned int j; 132 132 133 133 for (j = 0; j < count; j++) { 134 134 pte_t pte; 135 135 bool found; 136 136 137 137 page_table_lock(area->as, false); 138 138 found = page_mapping_find(area->as, … … 201 201 if (area->sh_info->shared) { 202 202 btree_node_t *leaf; 203 203 204 204 /* 205 205 * The area is shared, chances are that the mapping can be found … … 214 214 bool allocate = true; 215 215 unsigned int i; 216 216 217 217 /* 218 218 * Zero can be returned as a valid frame address. … … 230 230 memsetb((void *) kpage, PAGE_SIZE, 0); 231 231 km_temporary_page_put(kpage); 232 232 233 233 /* 234 234 * Insert the address of the newly allocated … … 272 272 } 273 273 mutex_unlock(&area->sh_info->lock); 274 274 275 275 /* 276 276 * Map 'upage' to 'frame'. … … 281 281 if (!used_space_insert(area, upage, 1)) 282 282 panic("Cannot insert used space."); 283 283 284 284 return AS_PF_OK; 285 285 }
Note:
See TracChangeset
for help on using the changeset viewer.