pub fn load_x86<F>(
importer: &mut impl ImageLoad<X86Register>,
kernel_image: &mut F,
initrd: Option<InitrdConfig<'_>>,
cmdline: &CString,
mem_layout: &MemoryLayout,
build_acpi: impl FnOnce(u64) -> AcpiTables,
smbios: Option<SmbiosTables<'_>>,
snp_boot: Option<SnpBootConfig>,
) -> Result<LoadInfo, Error>Expand description
Load a Linux kernel into VTL0 and place all of its supporting structures.
Loads the kernel (uncompressed ELF or bzImage) and optional initrd at the
conventional 1 MB address, then delegates to load_config_x86 to place
the ACPI/SMBIOS tables, boot metadata, zero page, and initial registers.
See load_config_x86 for the build_acpi/smbios contract.