Compile a catalog program (primary + aux units) the way the app boot path does.
(name: &str)
| 70 | fs_image: Option<&[u8]>, |
| 71 | input: &str, |
| 72 | ) -> VirtualMachine { |
| 73 | let mut vm = VirtualMachine::new_kernel(kernel); |
| 74 | |
| 75 | if let Some(image) = fs_image { |
| 76 | vm.write_ram(FS_META_PA, &FS_IMAGE_PA.to_le_bytes()) |
| 77 | .expect("write fs image PA"); |
| 78 | vm.write_ram(FS_META_PA + 8, &(image.len() as u64).to_le_bytes()) |
| 79 | .expect("write fs image size"); |
| 80 | vm.write_ram(FS_IMAGE_PA, image).expect("write fs image"); |
no outgoing calls