Changes in kernel/genarch/src/mm/page_ht.c [c868e2d:235e6c7] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/src/mm/page_ht.c
rc868e2d r235e6c7 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;64 61 65 62 /** … … 89 86 .mapping_insert = ht_mapping_insert, 90 87 .mapping_remove = ht_mapping_remove, 91 .mapping_find = ht_mapping_find, 92 .mapping_make_global = ht_mapping_make_global 88 .mapping_find = ht_mapping_find 93 89 }; 94 90 … … 167 163 pte_t *pte = hash_table_get_instance(item, pte_t, link); 168 164 169 slab_free(pte_cache,pte);165 free(pte); 170 166 } 171 167 … … 192 188 193 189 if (!hash_table_find(&page_ht, key)) { 194 pte_t *pte = slab_alloc(pte_cache, FRAME_LOWMEM |FRAME_ATOMIC);190 pte_t *pte = (pte_t *) malloc(sizeof(pte_t), FRAME_ATOMIC); 195 191 ASSERT(pte != NULL); 196 192 … … 264 260 } 265 261 266 void ht_mapping_make_global(uintptr_t base, size_t size)267 {268 /* nothing to do */269 }270 271 262 /** @} 272 263 */
Note:
See TracChangeset
for help on using the changeset viewer.