Module x64

Source
Expand description

Methods to construct page tables on x64.

Structs§

PageTable
PageTableBuilder
PageTableEntry

Enums§

PageTableEntryType

Constants§

X64_1GB_PAGE_SIZE
Number of bytes in a 1GB page for X64.
X64_LARGE_PAGE_SIZE
Number of bytes in a large page for X64.
X64_PAGE_SIZE
Number of bytes in a page for X64.

Traits§

PteOps

Functions§

align_up_to_1_gb_page_size
Align an address up to the start of the next 1GB page.
align_up_to_large_page_size
Align an address up to the start of the next large (2MB) page.
align_up_to_page_size
Align an address up to the start of the next page.
build_page_tables_64
Build a set of X64 page tables identity mapping the bottom address space with an optional address bias.
calculate_pde_table_count
Calculate the number of PDE page tables required to identity map a given gpa and size.
get_amd64_pte_index
Get an AMD64 PTE index based on page table level.