Changes in kernel/genarch/src/mm/page_ht.c [235e6c7:a55ddc64] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/src/mm/page_ht.c
r235e6c7 ra55ddc64 60 60 static pte_t *ht_mapping_find(as_t *, uintptr_t, bool); 61 61 62 slab_cache_t *pte_cache = NULL; 63 62 64 /** 63 65 * This lock protects the page hash table. It must be acquired … … 163 165 pte_t *pte = hash_table_get_instance(item, pte_t, link); 164 166 165 free(pte);167 slab_free(pte_cache, pte); 166 168 } 167 169 … … 188 190 189 191 if (!hash_table_find(&page_ht, key)) { 190 pte_t *pte = (pte_t *) malloc(sizeof(pte_t),FRAME_ATOMIC);192 pte_t *pte = slab_alloc(pte_cache, FRAME_LOWMEM | FRAME_ATOMIC); 191 193 ASSERT(pte != NULL); 192 194
Note:
See TracChangeset
for help on using the changeset viewer.