Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vm_arm: set fdt pointer and gic name #53

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

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 <[email protected]>
@@ -1156,6 +1157,9 @@ int main_continued(void)
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);
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.

@@ -1156,6 +1157,9 @@ int main_continued(void)
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