Changeset a55ddc64 in mainline for kernel/genarch/src/mm/as_ht.c


Ignore:
Timestamp:
2011-11-17T22:29:00Z (12 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ad12b5ea
Parents:
6b326ea1
Message:

Allocate PTEs from low memory.

  • Introduce a dedicated slab cache for pte_t's.
  • This should limit the depth of nested page faults.
File:
1 edited

Legend:

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

    r6b326ea1 ra55ddc64  
    4141#include <mm/as.h>
    4242#include <mm/frame.h>
     43#include <mm/slab.h>
    4344#include <typedefs.h>
    4445#include <memstr.h>
     
    7778                hash_table_create(&page_ht, PAGE_HT_ENTRIES, 2, &ht_operations);
    7879                mutex_initialize(&page_ht_lock, MUTEX_PASSIVE);
     80                pte_cache = slab_cache_create("pte_cache", sizeof(pte_t), 0, NULL, NULL,
     81                    SLAB_CACHE_MAGDEFERRED);
    7982        }
    8083       
Note: See TracChangeset for help on using the changeset viewer.