6 #include <sys/vm_i386.h>
10 /* An i386 pagetable. */
12 /* Directory entries in VM addr space - root of page table. */
13 u32_t
*pt_dir
; /* page aligned (I386_VM_DIR_ENTRIES) */
14 u32_t pt_dir_phys
; /* physical address of pt_dir */
16 /* Pointers to page tables in VM address space. */
17 u32_t
*pt_pt
[I386_VM_DIR_ENTRIES
];
19 /* When looking for a hole in virtual address space, start
20 * looking here. This is in linear addresses, i.e.,
21 * not as the process sees it but the position in the page
22 * page table. This is just a hint.
28 #define PTF_WRITE I386_VM_WRITE
29 #define PTF_PRESENT I386_VM_PRESENT
30 #define PTF_USER I386_VM_USER
31 #define PTF_GLOBAL I386_VM_GLOBAL
32 #define PTF_MAPALLOC I386_VM_PTAVAIL1 /* Page allocated by pt code. */
34 /* For arch-specific PT routines to check if no bits outside
35 * the regular flags are set.
37 #define PTF_ALLFLAGS (PTF_WRITE|PTF_PRESENT|PTF_USER|PTF_GLOBAL)
40 #define PT_SANE(p) { pt_sanitycheck((p), __FILE__, __LINE__); }