page_table_entry
This crate provides the definition of page table entry for various hardware architectures.
Currently supported architectures and page table entry types:
- x86:
x86_64::X64PTE
- ARM:
aarch64::A64PTE
- RISC-V:
riscv::Rv64PTE
- LoongArch:
loongarch64::LA64PTE
All these types implement the GenericPTE
trait, which provides unified
methods for manipulating various page table entries.
Examples (x86_64)
use PhysAddr;
use PageTableFlags;
use ;
let paddr = from;
let pte = X64PTE new_page;
assert!;
assert!;
assert_eq!;
assert_eq!;