Skip to main content

init_offset_page_table

Function init_offset_page_table 

Source
pub unsafe fn init_offset_page_table(
    physical_memory_offset: VirtAddr,
) -> OffsetPageTable<'static>
Expand description

Initialize an OffsetPageTable for accessing page tables

§Arguments

  • physical_memory_offset - The HHDM offset returned by bootloader

§Safety

This function is unsafe because the caller must guarantee that:

  • The complete physical memory is mapped to virtual memory at the passed offset
  • This function is only called once to avoid aliasing &mut references