⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

phys_to_virt_addr

Function phys_to_virt_addr 

Source
pub fn phys_to_virt_addr(phys: u64) -> u64
Expand description

Convert a physical address to a virtual pointer.

On x86_64, adds the bootloader’s physical memory mapping offset. On AArch64/RISC-V, returns the address unchanged (identity-mapped).