Changeset c520034 in mainline for kernel/genarch/src/mm/page_ht.c
- Timestamp:
- 2011-12-31T18:19:35Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 295f658, 77c2b02, 96cd5b4
- Parents:
- 852052d (diff), 22f0561 (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
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/src/mm/page_ht.c
r852052d rc520034 59 59 static void ht_mapping_remove(as_t *, uintptr_t); 60 60 static pte_t *ht_mapping_find(as_t *, uintptr_t, bool); 61 static void ht_mapping_make_global(uintptr_t, size_t); 62 63 slab_cache_t *pte_cache = NULL; 61 64 62 65 /** … … 86 89 .mapping_insert = ht_mapping_insert, 87 90 .mapping_remove = ht_mapping_remove, 88 .mapping_find = ht_mapping_find 91 .mapping_find = ht_mapping_find, 92 .mapping_make_global = ht_mapping_make_global 89 93 }; 90 94 … … 163 167 pte_t *pte = hash_table_get_instance(item, pte_t, link); 164 168 165 free(pte);169 slab_free(pte_cache, pte); 166 170 } 167 171 … … 188 192 189 193 if (!hash_table_find(&page_ht, key)) { 190 pte_t *pte = (pte_t *) malloc(sizeof(pte_t),FRAME_ATOMIC);194 pte_t *pte = slab_alloc(pte_cache, FRAME_LOWMEM | FRAME_ATOMIC); 191 195 ASSERT(pte != NULL); 192 196 … … 260 264 } 261 265 266 void ht_mapping_make_global(uintptr_t base, size_t size) 267 { 268 /* nothing to do */ 269 } 270 262 271 /** @} 263 272 */
Note:
See TracChangeset
for help on using the changeset viewer.