const X64_PTE_PRESENT
pub const X64_PTE_PRESENT = 0x1u64Purpose
Constant X64_PTE_PRESENT, defining protocol or algorithm parameters.
#core/mmuStandard library package `#core/mmu`.
const X64_PTE_PRESENTpub const X64_PTE_PRESENT = 0x1u64Constant X64_PTE_PRESENT, defining protocol or algorithm parameters.
const X64_PTE_WRITABLEpub const X64_PTE_WRITABLE = 0x2u64Constant X64_PTE_WRITABLE, defining protocol or algorithm parameters.
const X64_PTE_USERpub const X64_PTE_USER = 0x4u64Constant X64_PTE_USER, defining protocol or algorithm parameters.
const X64_PTE_PWTpub const X64_PTE_PWT = 0x8u64Constant X64_PTE_PWT, defining protocol or algorithm parameters.
const X64_PTE_PCDpub const X64_PTE_PCD = 0x10u64Constant X64_PTE_PCD, defining protocol or algorithm parameters.
const X64_PTE_ACCESSEDpub const X64_PTE_ACCESSED = 0x20u64Constant X64_PTE_ACCESSED, defining protocol or algorithm parameters.
const X64_PTE_DIRTYpub const X64_PTE_DIRTY = 0x40u64Constant X64_PTE_DIRTY, defining protocol or algorithm parameters.
const X64_PTE_HUGEpub const X64_PTE_HUGE = 0x80u64Constant X64_PTE_HUGE, defining protocol or algorithm parameters.
const X64_PTE_GLOBALpub const X64_PTE_GLOBAL = 0x100u64Constant X64_PTE_GLOBAL, defining protocol or algorithm parameters.
const X64_PTE_NXpub const X64_PTE_NX = 0x8000000000000000u64Constant X64_PTE_NX, defining protocol or algorithm parameters.
const X64_PTE_ADDR_MASKpub const X64_PTE_ADDR_MASK = 0x000FFFFFFFFFF000u64Constant X64_PTE_ADDR_MASK, defining protocol or algorithm parameters.
const ARM64_DESC_VALIDpub const ARM64_DESC_VALID = 0x1u64Constant ARM64_DESC_VALID, defining protocol or algorithm parameters.
const ARM64_DESC_TABLEpub const ARM64_DESC_TABLE = 0x3u64Constant ARM64_DESC_TABLE, defining protocol or algorithm parameters.
const ARM64_DESC_BLOCKpub const ARM64_DESC_BLOCK = 0x1u64Constant ARM64_DESC_BLOCK, defining protocol or algorithm parameters.
const ARM64_DESC_PAGEpub const ARM64_DESC_PAGE = 0x3u64Constant ARM64_DESC_PAGE, defining protocol or algorithm parameters.
const ARM64_AFpub const ARM64_AF = 0x400u64Constant ARM64_AF, defining protocol or algorithm parameters.
const ARM64_SH_INNERpub const ARM64_SH_INNER = 0x300u64Constant ARM64_SH_INNER, defining protocol or algorithm parameters.
const ARM64_AP_RW_EL1pub const ARM64_AP_RW_EL1 = 0x0u64Constant ARM64_AP_RW_EL1, defining protocol or algorithm parameters.
const ARM64_AP_RW_ALLpub const ARM64_AP_RW_ALL = 0x40u64Constant ARM64_AP_RW_ALL, defining protocol or algorithm parameters.
const ARM64_AP_RO_EL1pub const ARM64_AP_RO_EL1 = 0x80u64Constant ARM64_AP_RO_EL1, defining protocol or algorithm parameters.
const ARM64_AP_RO_ALLpub const ARM64_AP_RO_ALL = 0xC0u64Constant ARM64_AP_RO_ALL, defining protocol or algorithm parameters.
const ARM64_ATTR_NORMALpub const ARM64_ATTR_NORMAL = 0x0u64Constant ARM64_ATTR_NORMAL, defining protocol or algorithm parameters.
const ARM64_ATTR_DEVICEpub const ARM64_ATTR_DEVICE = 0x4u64Constant ARM64_ATTR_DEVICE, defining protocol or algorithm parameters.
const ARM64_PXNpub const ARM64_PXN = 0x0020000000000000u64Constant ARM64_PXN, defining protocol or algorithm parameters.
const ARM64_UXNpub const ARM64_UXN = 0x0040000000000000u64Constant ARM64_UXN, defining protocol or algorithm parameters.
const ARM64_ADDR_MASKpub const ARM64_ADDR_MASK = 0x0000FFFFFFFFF000u64Constant ARM64_ADDR_MASK, defining protocol or algorithm parameters.
const RV64_PTE_Vpub const RV64_PTE_V = 0x1u64Constant RV64_PTE_V, defining protocol or algorithm parameters.
const RV64_PTE_Rpub const RV64_PTE_R = 0x2u64Constant RV64_PTE_R, defining protocol or algorithm parameters.
const RV64_PTE_Wpub const RV64_PTE_W = 0x4u64Constant RV64_PTE_W, defining protocol or algorithm parameters.
const RV64_PTE_Xpub const RV64_PTE_X = 0x8u64Constant RV64_PTE_X, defining protocol or algorithm parameters.
const RV64_PTE_Upub const RV64_PTE_U = 0x10u64Constant RV64_PTE_U, defining protocol or algorithm parameters.
const RV64_PTE_Gpub const RV64_PTE_G = 0x20u64Constant RV64_PTE_G, defining protocol or algorithm parameters.
const RV64_PTE_Apub const RV64_PTE_A = 0x40u64Constant RV64_PTE_A, defining protocol or algorithm parameters.
const RV64_PTE_Dpub const RV64_PTE_D = 0x80u64Constant RV64_PTE_D, defining protocol or algorithm parameters.
const RV64_SATP_MODE_SV39pub const RV64_SATP_MODE_SV39 = 0x8000000000000000u64Constant RV64_SATP_MODE_SV39, defining protocol or algorithm parameters.
const RV64_PPN_MASKpub const RV64_PPN_MASK = 0x003FFFFFFFFFFC00u64Constant RV64_PPN_MASK, defining protocol or algorithm parameters.
x64_pml4_indexpub fn x64_pml4_index(va u64) usizeX64 pml4 index.
va u64usize — a value of this type
x64_pdpt_indexpub fn x64_pdpt_index(va u64) usizeX64 pdpt index.
va u64usize — a value of this type
x64_pd_indexpub fn x64_pd_index(va u64) usizeX64 pd index.
va u64usize — a value of this type
x64_pt_indexpub fn x64_pt_index(va u64) usizeX64 point index.
va u64usize — a value of this type
x64_pte_makepub fn x64_pte_make(phys u64, flags u64) u64X64 pte make.
phys u64flags u64u64 — a value of this type
x64_pte_physpub fn x64_pte_phys(pte u64) u64X64 pte phys.
pte u64u64 — a value of this type
x64_pte_is_presentpub fn x64_pte_is_present(pte u64) boolWhether x64_pte is present.
pte u64bool — true or false
x64_walk_4kpub fn x64_walk_4k(pml4_phys u64, va u64) u64Walks PML4 -> PDPT -> PD -> PT for va, returning the leaf PTE (including 1GB/2MB huge pages) or 0 if any level is unmapped or null.
pml4_phys u64va u64u64 — a value of this type
arm64_mair_defaultpub fn arm64_mair_default() u64Default MAIR_EL1: Attr0 = Normal WBWA (0xFF), Attr1 = Device-nGnRnE (0x00), Attr2 = Normal NC (0x44), Attr3 = Device-nGnRE (0x04).
No arguments are required.
u64 — a value of this type
arm64_tcr_48bit_4kpub fn arm64_tcr_48bit_4k() u64Default TCR_EL1 for 48-bit VA (T0SZ=16, T1SZ=16), 4KB granule (TG0=0b00, TG1=0b10), Inner Shareable WBWA cacheability, and 48-bit physical address space (IPS=0b101).
No arguments are required.
u64 — a value of this type
arm64_l0_indexpub fn arm64_l0_index(va u64) usizeArm64 l0 index.
va u64usize — a value of this type
arm64_l1_indexpub fn arm64_l1_index(va u64) usizeArm64 l1 index.
va u64usize — a value of this type
arm64_l2_indexpub fn arm64_l2_index(va u64) usizeArm64 l2 index.
va u64usize — a value of this type
arm64_l3_indexpub fn arm64_l3_index(va u64) usizeArm64 l3 index.
va u64usize — a value of this type
arm64_pte_makepub fn arm64_pte_make(phys u64, flags u64) u64Arm64 pte make.
phys u64flags u64u64 — a value of this type
arm64_pte_physpub fn arm64_pte_phys(pte u64) u64Arm64 pte phys.
pte u64u64 — a value of this type
arm64_walk_4kpub fn arm64_walk_4k(ttbr_phys u64, va u64) u64Walks L0 -> L1 -> L2 -> L3 for va, returning the leaf descriptor (including 1GB/2MB blocks) or 0 if any level is invalid or null.
ttbr_phys u64va u64u64 — a value of this type
rv64_sv39_vpn2pub fn rv64_sv39_vpn2(va u64) usizeRv64 sv39 vpn2.
va u64usize — a value of this type
rv64_sv39_vpn1pub fn rv64_sv39_vpn1(va u64) usizeRv64 sv39 vpn1.
va u64usize — a value of this type
rv64_sv39_vpn0pub fn rv64_sv39_vpn0(va u64) usizeRv64 sv39 vpn0.
va u64usize — a value of this type
rv64_sv39_pte_makepub fn rv64_sv39_pte_make(phys u64, flags u64) u64Rv64 sv39 pte make.
phys u64flags u64u64 — a value of this type
rv64_sv39_pte_physpub fn rv64_sv39_pte_phys(pte u64) u64Rv64 sv39 pte phys.
pte u64u64 — a value of this type
rv64_sv39_satp_makepub fn rv64_sv39_satp_make(root_phys u64, asid u16) u64Rv64 sv39 satp make.
root_phys u64asid u16u64 — a value of this type
rv64_sv39_walkpub fn rv64_sv39_walk(root_phys u64, va u64) u64Walks Sv39 VPN[2] -> VPN[1] -> VPN[0] for va, returning the leaf PTE (including 1GB/2MB superpages where R|W|X != 0) or 0 if unmapped or null.
root_phys u64va u64u64 — a value of this type