Function axhal::mem::phys_to_virt  
source · pub const fn phys_to_virt(paddr: PhysAddr) -> VirtAddrExpand description
Converts a physical address to a virtual address.
It assumes that there is a linear mapping with the offset
PHYS_VIRT_OFFSET, that maps all the physical memory to the virtual
space at the address plus the offset. So we have
vaddr = paddr + PHYS_VIRT_OFFSET.