Skip to main content

ensure_identity_map

Function ensure_identity_map 

Source
pub fn ensure_identity_map(phys_addr: u64)
Expand description

Ensure a physical address is identity-mapped in the HHDM region.

If the page is not present, it is mapped with Read/Write permissions. This is used to lazily map MMIO or legacy BIOS regions (like ACPI tables) that might have been skipped by the bootloader’s initial map.