Changes in kernel/genarch/include/mm/page_ht.h [da1bafb:d99c1d2] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/include/mm/page_ht.h
rda1bafb rd99c1d2 32 32 /** 33 33 * @file 34 * @brief 34 * @brief This is the generic page hash table interface. 35 35 */ 36 36 … … 46 46 #include <adt/hash_table.h> 47 47 48 #define PAGE_HT_KEYS 49 #define KEY_AS 50 #define KEY_PAGE 48 #define PAGE_HT_KEYS 2 49 #define KEY_AS 0 50 #define KEY_PAGE 1 51 51 52 #define PAGE_HT_ENTRIES_BITS 53 #define PAGE_HT_ENTRIES 52 #define PAGE_HT_ENTRIES_BITS 13 53 #define PAGE_HT_ENTRIES (1 << PAGE_HT_ENTRIES_BITS) 54 54 55 55 /* Macros for querying page hash table PTEs. */ 56 #define PTE_VALID(pte) 57 #define PTE_PRESENT(pte) 58 #define PTE_GET_FRAME(pte) 59 #define PTE_READABLE(pte) 60 #define PTE_WRITABLE(pte) 61 #define PTE_EXECUTABLE(pte) 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) 62 62 63 63 extern as_operations_t as_ht_operations;
Note:
See TracChangeset
for help on using the changeset viewer.