bootloader_x86_64_common

Function load_and_switch_to_kernel

Source
pub fn load_and_switch_to_kernel<I, D>(
    kernel: Kernel<'_>,
    boot_config: BootConfig,
    frame_allocator: LegacyFrameAllocator<I, D>,
    page_tables: PageTables,
    system_info: SystemInfo,
) -> !
where I: ExactSizeIterator<Item = D> + Clone, D: LegacyMemoryRegion,
Expand description

Loads the kernel ELF executable into memory and switches to it.

This function is a convenience function that first calls set_up_mappings, then create_boot_info, and finally switch_to_kernel. The given arguments are passed directly to these functions, so see their docs for more info.