Rev 2106 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2106 | Rev 2467 | ||
---|---|---|---|
Line 48... | Line 48... | ||
48 | #define PAGE_HT_KEYS 2 |
48 | #define PAGE_HT_KEYS 2 |
49 | #define KEY_AS 0 |
49 | #define KEY_AS 0 |
50 | #define KEY_PAGE 1 |
50 | #define KEY_PAGE 1 |
51 | 51 | ||
52 | #define PAGE_HT_ENTRIES_BITS 13 |
52 | #define PAGE_HT_ENTRIES_BITS 13 |
53 | #define PAGE_HT_ENTRIES (1<<PAGE_HT_ENTRIES_BITS) |
53 | #define PAGE_HT_ENTRIES (1 << PAGE_HT_ENTRIES_BITS) |
54 | 54 | ||
- | 55 | /* Macros for querying page hash table PTEs. */ |
|
55 | #define PTE_VALID(pte) ((pte) != NULL) |
56 | #define PTE_VALID(pte) ((pte) != NULL) |
56 | #define PTE_PRESENT(pte) ((pte)->p != 0) |
57 | #define PTE_PRESENT(pte) ((pte)->p != 0) |
57 | #define PTE_GET_FRAME(pte) ((pte)->frame) |
58 | #define PTE_GET_FRAME(pte) ((pte)->frame) |
58 | #define PTE_READABLE(pte) 1 |
59 | #define PTE_READABLE(pte) 1 |
59 | #define PTE_WRITABLE(pte) ((pte)->w != 0) |
60 | #define PTE_WRITABLE(pte) ((pte)->w != 0) |