MCPcopy Create free account
hub / github.com/cloud-hypervisor/cloud-hypervisor / write_fdt_to_memory

Function write_fdt_to_memory

arch/src/riscv64/fdt.rs:104–110  ·  view source on GitHub ↗
(fdt_final: &[u8], guest_mem: &GuestMemoryMmap)

Source from the content-addressed store, hash-verified

102}
103
104pub fn write_fdt_to_memory(fdt_final: &[u8], guest_mem: &GuestMemoryMmap) -> Result<()> {
105 // Write FDT to memory.
106 guest_mem
107 .write_slice(fdt_final, super::layout::FDT_START)
108 .map_err(Error::WriteFdtToMemory)?;
109 Ok(())
110}
111
112// Following are the auxiliary function for creating the different nodes that we append to our FDT.
113fn create_cpu_nodes(fdt: &mut FdtWriter, num_cpus: u32, isa_string: &str) -> FdtWriterResult<()> {

Callers 1

configure_systemFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected