(physical_memory_offset: VirtAddr, target_phy: PhysAddr)
| 35 | } |
| 36 | |
| 37 | pub unsafe fn kern_phy_to_virt(physical_memory_offset: VirtAddr, target_phy: PhysAddr) -> VirtAddr { |
| 38 | let virt = VirtAddr::new(physical_memory_offset.as_u64() + target_phy.as_u64()); |
| 39 | virt |
| 40 | } |
| 41 | |
| 42 | const BUFFER_SIZE_ADVANCE: usize = 32; |
| 43 | use bootloader_api::info::{MemoryRegionKind, MemoryRegions}; |
nothing calls this directly
no outgoing calls
no test coverage detected