Function load_kernel_and_initrd_x64

Source
pub fn load_kernel_and_initrd_x64<F>(
    importer: &mut dyn ImageLoad<X86Register>,
    kernel_image: &mut F,
    kernel_minimum_start_address: u64,
    initrd: Option<InitrdConfig<'_>>,
) -> Result<LoadInfo, Error>
where F: Read + Seek,
Expand description

Load only a Linux kernel and optional initrd to VTL0. This does not setup register state or any other config information.

ยงArguments

  • importer - The importer to use.
  • kernel_image - Uncompressed ELF image for the kernel.
  • kernel_minimum_start_address - The minimum address the kernel can load at. It cannot contain an entrypoint or program headers that refer to memory below this address.
  • initrd - The initrd config, optional.