Ignore:
File:
1 edited

Legend:

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

    rd99c1d2 rda1bafb  
    3232/**
    3333 * @file
    34  * @brief       This is the generic page hash table interface.
     34 * @brief This is the generic page hash table interface.
    3535 */
    3636
     
    4646#include <adt/hash_table.h>
    4747
    48 #define PAGE_HT_KEYS    2
    49 #define KEY_AS          0
    50 #define KEY_PAGE        1
     48#define PAGE_HT_KEYS  2
     49#define KEY_AS        0
     50#define KEY_PAGE      1
    5151
    52 #define PAGE_HT_ENTRIES_BITS    13
    53 #define PAGE_HT_ENTRIES         (1 << PAGE_HT_ENTRIES_BITS)
     52#define PAGE_HT_ENTRIES_BITS  13
     53#define PAGE_HT_ENTRIES       (1 << PAGE_HT_ENTRIES_BITS)
    5454
    5555/* Macros for querying page hash table PTEs. */
    56 #define PTE_VALID(pte)          ((pte) != NULL)
    57 #define PTE_PRESENT(pte)        ((pte)->p != 0)
    58 #define PTE_GET_FRAME(pte)      ((pte)->frame)
    59 #define PTE_READABLE(pte)       1
    60 #define PTE_WRITABLE(pte)       ((pte)->w != 0)
    61 #define PTE_EXECUTABLE(pte)     ((pte)->x != 0)
     56#define PTE_VALID(pte)       ((pte) != NULL)
     57#define PTE_PRESENT(pte)     ((pte)->p != 0)
     58#define PTE_GET_FRAME(pte)   ((pte)->frame)
     59#define PTE_READABLE(pte)    1
     60#define PTE_WRITABLE(pte)    ((pte)->w != 0)
     61#define PTE_EXECUTABLE(pte)  ((pte)->x != 0)
    6262
    6363extern as_operations_t as_ht_operations;
Note: See TracChangeset for help on using the changeset viewer.