/// Initialize a new OffsetPageTable.
///
/// This function is unsafe because the caller must guarantee that the
/// complete physical memory is mapped to virtual memory at the passed
/// `physical_memory_offset`. Also, this function must be only called once
/// to avoid aliasing `&mut` references (which is undefined behavior).
Initialize a new OffsetPageTable.
This function is unsafe because the caller must guarantee that the
complete physical memory is mapped to virtual memory at the passed
`physical_memory_offset`. Also, this function must be only called once
to avoid aliasing `&mut` references (which is undefined behavior).
Initialize a new OffsetPageTable . This function is unsafe because the caller must guarantee that the complete physical memory is mapped to virtual memory at the passed ` physical_memory_offset ` . Also this function must be only called once to avoid aliasing ` &mut ` references ( which is undefined behavior ) .
pub unsafe fn init(
    memory_regions: &'static MemoryRegions,
) -> (OffsetPageTable<'static>, GlobalFrameAllocator) {
    let level_4_table = active_level_4_table();
    (
        OffsetPageTable::new(level_4_table, PHYS_OFFSET),
        GlobalFrameAllocator::init(memory_regions),
    )
}
pub unsafe fn init ( memory_regions : & ' static MemoryRegions , ) -> ( OffsetPageTable < ' static > , GlobalFrameAllocator ) { let level_4_table = active_level_4_table ( ) ; ( OffsetPageTable :: new ( level_4_table , PHYS_OFFSET ) , GlobalFrameAllocator :: init ( memory_regions ) , ) }
Initialize a new OffsetPageTable.
Initialize a new OffsetPageTable .
memory_regions
&'static MemoryRegions