x86_64: pmap: map all of physical memory starting at VM_PAGEMAP_BASE

This commit is contained in:
2023-02-07 15:38:18 +00:00
parent e939aae775
commit ad63f0b251
2 changed files with 31 additions and 6 deletions

View File

@@ -1,8 +1,16 @@
#ifndef SOCKS_X86_64_VM_H_
#define SOCKS_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