(fdt_final: &[u8], guest_mem: &GuestMemoryMmap)
| 102 | } |
| 103 | |
| 104 | pub 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. |
| 113 | fn create_cpu_nodes(fdt: &mut FdtWriter, num_cpus: u32, isa_string: &str) -> FdtWriterResult<()> { |