Skip to content

vm_arm: set fdt pointer and gic name#53

Draft
chrisguikema wants to merge 1 commit intoseL4:masterfrom
chrisguikema:set_fdt_in_vm_struct
Draft

vm_arm: set fdt pointer and gic name#53
chrisguikema wants to merge 1 commit intoseL4:masterfrom
chrisguikema:set_fdt_in_vm_struct

Conversation

@chrisguikema
Copy link
Contributor

This commit sets the fdt pointer and gic node, which are used by the libraries to find the registers necessary to emulate the gic.

Test with: seL4/seL4_projects_libs#83

This commit sets the fdt pointer and gic node, which are used by the
libraries to find the registers necessary to emulate the gic.

Signed-off-by: Chris Guikema <chris.guikema@dornerworks.com>
#endif /* CONFIG_ARM_SMMU */

vm.fdt_ori = (void *)ps_io_fdt_get(&_io_ops.io_fdt);
vm.gic_path = GIC_NODE_PATH;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for splitting the PRs up. Please add the usage of vm->gic_path in generate_fdt() also, so this is the only place where the path's default is set up from the plat constants.

ZF_LOGF_IF(err, "Failed to bind CB to SID");
#endif /* CONFIG_ARM_SMMU */

vm.fdt_ori = (void *)ps_io_fdt_get(&_io_ops.io_fdt);
Copy link
Member

@axel-h axel-h Oct 27, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will we replace all places where ps_io_fdt_get() is called by vm->fdt_ori then also? E.g. in load_linux() above?

@chrisguikema chrisguikema marked this pull request as draft October 27, 2022 23:43
@axel-h
Copy link
Member

axel-h commented Mar 14, 2023

What is you plan about this one? With #73 I have another use case where fdt_oriin the vm contenxt would be nice, there it's not another global variable flying around.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants