31 lines
857 B
C
31 lines
857 B
C
#ifndef KERNEL_X86_64_VM_H_
|
|
#define KERNEL_X86_64_VM_H_
|
|
|
|
/* kernel higher-half base virtual address. */
|
|
#define VM_KERNEL_VOFFSET 0xFFFFFFFF80000000
|
|
|
|
/* direct page-mapping region.
|
|
NOTE that these are the maximum bounds of this region.
|
|
the actual size depends on the amount of physical
|
|
memory present. */
|
|
#define VM_PAGEMAP_BASE 0xFFFF888000000000
|
|
#define VM_PAGEMAP_LIMIT 0xFFFFC87FFFFFFFFF
|
|
|
|
#define VM_PAGE_SIZE 0x1000
|
|
#define VM_PAGE_MASK (VM_PAGE_SIZE - 1)
|
|
#define VM_PAGE_SHIFT 12
|
|
|
|
#define VM_PAGE_MIN_ORDER VM_PAGE_4K
|
|
#define VM_PAGE_MAX_ORDER VM_PAGE_8M
|
|
|
|
#define VM_ZONE_MIN VM_ZONE_DMA
|
|
#define VM_ZONE_MAX VM_ZONE_NORMAL
|
|
|
|
#define VM_USER_BASE 0x0000000000100000
|
|
#define VM_USER_LIMIT 0x00007fffffffffff
|
|
|
|
#define VM_KERNEL_BASE 0XFFFF800000000000
|
|
#define VM_KERNEL_LIMIT 0XFFFFFFFFFFFFFFFF
|
|
|
|
#endif
|