5 #include <minix/bitmap.h>
6 #include <machine/archtypes.h>
10 #include "regionavl.h"
16 endpoint_t vm_endpoint
;
17 pt_t vm_pt
; /* page table data */
18 struct boot_image
*vm_boot
; /* if boot time process */
20 /* Regions in virtual address space. */
21 region_avl vm_regions_avl
;
22 vir_bytes vm_region_top
; /* highest vaddr last inserted */
24 int vm_slot
; /* process table slot */
29 vir_bytes vm_total_max
;
30 u64_t vm_minor_page_fault
;
31 u64_t vm_major_page_fault
;
34 /* Bits for vm_flags */
35 #define VMF_INUSE 0x001 /* slot contains a process */
36 #define VMF_EXITING 0x002 /* PM is cleaning up this process */
37 #define VMF_VM_INSTANCE 0x010 /* This is a VM process instance */