Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/genarch/src/mm/page_ht.c

    rc868e2d r235e6c7  
    5959static void ht_mapping_remove(as_t *, uintptr_t);
    6060static 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;
    6461
    6562/**
     
    8986        .mapping_insert = ht_mapping_insert,
    9087        .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
    9389};
    9490
     
    167163        pte_t *pte = hash_table_get_instance(item, pte_t, link);
    168164       
    169         slab_free(pte_cache, pte);
     165        free(pte);
    170166}
    171167
     
    192188       
    193189        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);
    195191                ASSERT(pte != NULL);
    196192               
     
    264260}
    265261
    266 void ht_mapping_make_global(uintptr_t base, size_t size)
    267 {
    268         /* nothing to do */
    269 }
    270 
    271262/** @}
    272263 */
Note: See TracChangeset for help on using the changeset viewer.