Changeset 82cbf8c6 in mainline for kernel/genarch/include


Ignore:
Timestamp:
2017-10-08T19:37:24Z (8 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2fd26bb
Parents:
81b9d3e
Message:

Replace the old hash table implementation in the kernel with the newer one

This replaces the original hash table implementation with the resizable one
already used in uspace. Along the way, the IRQ hash table code was streamlined
and cleaned up.

Location:
kernel/genarch/include/genarch/mm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/genarch/include/genarch/mm/as_ht.h

    r81b9d3e r82cbf8c6  
    3737
    3838#include <mm/mm.h>
    39 #include <adt/list.h>
     39#include <adt/hash_table.h>
    4040#include <typedefs.h>
    4141
     
    4646
    4747typedef struct pte {
    48         link_t link;            /**< Page hash table link. */
     48        ht_link_t link;         /**< Page hash table link. */
    4949        struct as *as;          /**< Address space. */
    5050        uintptr_t page;         /**< Virtual memory page. */
  • kernel/genarch/include/genarch/mm/page_ht.h

    r81b9d3e r82cbf8c6  
    4646#include <adt/hash_table.h>
    4747
    48 #define PAGE_HT_KEYS  2
    4948#define KEY_AS        0
    5049#define KEY_PAGE      1
    51 
    52 #define PAGE_HT_ENTRIES_BITS  13
    53 #define PAGE_HT_ENTRIES       (1 << PAGE_HT_ENTRIES_BITS)
    5450
    5551/* Macros for querying page hash table PTEs. */
     
    6662extern slab_cache_t *pte_cache;
    6763extern hash_table_t page_ht;
    68 extern hash_table_operations_t ht_operations;
     64extern hash_table_ops_t ht_ops;
    6965
    7066#endif
Note: See TracChangeset for help on using the changeset viewer.