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

PCI mmap is broken due to ngc #53

Open
arkivm opened this issue Jun 12, 2021 · 0 comments
Open

PCI mmap is broken due to ngc #53

arkivm opened this issue Jun 12, 2021 · 0 comments

Comments

@arkivm
Copy link
Contributor

arkivm commented Jun 12, 2021

Temporary fix:

  • Disable building the interface under idl_generation rule
  184 .PHONY: idl_generation
  185 idl_generation: tools/redIDL
  186         @ if [ ! -f "tools/redIDL/codegen/ngc/Cargo.toml" ]; \
  187         then echo "redIDL not found. Maybe you want to do 'git submodule init && git submodule update' then try again?"; \
  188                         exit -1; \
  189         fi
  190         #make -C interface
  • Modify kernel/src/generated_domain_create.rs under function pci_create_domain_pci
      type UserInit_ = fn(
          ::alloc::boxed::Box<dyn::syscalls::Syscall>,
          ::alloc::boxed::Box<dyn::syscalls::Mmap>,
          ::alloc::boxed::Box<dyn::syscalls::Heap>,
     ) -> alloc::boxed::Box<dyn interface::pci::PCI>;
let pmmap_ = ::alloc::boxed::Box::new(crate::syscalls::Mmap::new());
....
let ep_rtn_ = user_ep_(pdom_, pmmap_, pheap_);
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

No branches or pull requests

1 participant