mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-21 06:33:31 +00:00
c114014c1c
Apply lookup of pci config memory address to target pd.
17 lines
643 B
Diff
17 lines
643 B
Diff
diff --git a/src/syscall.cpp b/src/syscall.cpp
|
|
index ee6dc42..9d5eba3 100644
|
|
--- a/src/syscall.cpp
|
|
+++ b/src/syscall.cpp
|
|
@@ -462,8 +487,10 @@ void Ec::sys_assign_pci()
|
|
sys_finish<Sys_regs::BAD_CAP>();
|
|
}
|
|
|
|
+ Pd * pd = static_cast<Pd *>(obj);
|
|
+
|
|
Paddr phys; unsigned rid;
|
|
- if (EXPECT_FALSE (!Pd::current->Space_mem::lookup (r->dev(), phys) || (rid = Pci::phys_to_rid (phys)) == ~0U)) {
|
|
+ if (EXPECT_FALSE (!pd->Space_mem::lookup (r->dev(), phys) || (rid = Pci::phys_to_rid (phys)) == ~0U)) {
|
|
trace (TRACE_ERROR, "%s: Non-DEV CAP (%#lx)", __func__, r->dev());
|
|
sys_finish<Sys_regs::BAD_DEV>();
|
|
}
|