Ignore:
File:
1 edited

Legend:

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

    ra55ddc64 r235e6c7  
    6060static pte_t *ht_mapping_find(as_t *, uintptr_t, bool);
    6161
    62 slab_cache_t *pte_cache = NULL;
    63 
    6462/**
    6563 * This lock protects the page hash table. It must be acquired
     
    165163        pte_t *pte = hash_table_get_instance(item, pte_t, link);
    166164       
    167         slab_free(pte_cache, pte);
     165        free(pte);
    168166}
    169167
     
    190188       
    191189        if (!hash_table_find(&page_ht, key)) {
    192                 pte_t *pte = slab_alloc(pte_cache, FRAME_LOWMEM | FRAME_ATOMIC);
     190                pte_t *pte = (pte_t *) malloc(sizeof(pte_t), FRAME_ATOMIC);
    193191                ASSERT(pte != NULL);
    194192               
Note: See TracChangeset for help on using the changeset viewer.