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(); } + Pd * pd = static_cast(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(); }