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,
) -> !
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.