1 /** Page table and page directory flags.
5 * @author Jacob Potter (jdpotter)
11 #define PDE_4M_ADDR_SHIFT 22
12 #define PTE_4K_ADDR_SHIFT 12
13 #define PDE_TABLE_ADDR_SHIFT 12
14 #define PTE_FRAME_ADDR_MASK (~((1 << PTE_4K_ADDR_SHIFT) - 1))
15 #define PDE_TABLE_ADDR_MASK (~((1 << PDE_TABLE_ADDR_SHIFT) - 1))
17 #define PDE_ATTRIB_INDEX (1 << 12)
18 #define PDE_GLOBAL (1 << 8)
19 #define PDE_PAGE_SIZE (1 << 7)
20 #define PDE_DIRTY (1 << 6)
21 #define PDE_ACCESSED (1 << 5)
22 #define PDE_NO_CACHE (1 << 4)
23 #define PDE_WRITE_THROUGH (1 << 3)
24 #define PDE_USER (1 << 2)
25 #define PDE_READ_WRITE (1 << 1)
26 #define PDE_PRESENT (1 << 0)
28 #define PTE_GLOBAL (1 << 8)
29 #define PTE_ATTRIB_INDEX (1 << 7)
30 #define PTE_DIRTY (1 << 6)
31 #define PTE_ACCESSED (1 << 5)
32 #define PTE_NO_CACHE (1 << 4)
33 #define PTE_WRITE_THROUGH (1 << 3)
34 #define PTE_USER (1 << 2)
35 #define PTE_READ_WRITE (1 << 1)
36 #define PTE_PRESENT (1 << 0)
38 #endif /* _VM_FLAGS_H */