We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d65777d commit eec7256Copy full SHA for eec7256
tool/microkit/src/main.rs
@@ -785,9 +785,7 @@ fn build_system(
785
786
let child_pgd: &mut PGD = &mut all_child_page_tables[parent_idx].as_mut().unwrap()
787
[child_pd.id.unwrap() as usize];
788
- // Find the corresponding elf for this child and add loadable segments
789
- // to page table structures.
790
- let child_elf = &pd_elf_files[parent_idx + child_idx];
+ let child_elf = &pd_elf_files[child_idx];
791
for loadable_segment in child_elf.loadable_segments() {
792
child_pgd.add_page_at_vaddr_range(
793
loadable_segment.virt_addr,
0 commit comments