remap_boot_memory

Function remap_boot_memory 

Source
pub(crate) fn remap_boot_memory(bi: &KernelBootInfo) -> FramebufferInfo
Expand description

Remaps the boot framebuffer memory into the kernel’s virtual address space.

UEFI provides the physical address of the framebuffer in the boot info, but does not include it in the memory mapping table. This means the kernel must manually map the framebuffer into its own virtual address space to access it. This function sets up the necessary mapping so the framebuffer can be used by the kernel.