mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-16 00:00:02 +01:00
fix: ordering od pci init
Signed-off-by: Pascal Bauer <pascal.bauer@rwth-aachen.de>
This commit is contained in:
parent
37d5739c5a
commit
b2c7fe04b1
1 changed files with 4 additions and 4 deletions
|
@ -30,16 +30,16 @@ bool InterruptController::init() {
|
|||
PCIeCard *pciecard = dynamic_cast<PCIeCard *>(card);
|
||||
this->vfioDevice = pciecard->vfioDevice;
|
||||
|
||||
if (not this->vfioDevice->pciMsiFind(nos)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
const uintptr_t base = getBaseAddr(registerMemory);
|
||||
kernel::vfio::Device::IrqVectorInfo irq_vector = {0};
|
||||
irq_vector.numFds = this->vfioDevice->pciMsiInit(irq_vector.eventFds);
|
||||
irq_vector.automask = true;
|
||||
irq_vectors.push_back(irq_vector);
|
||||
|
||||
if (not this->vfioDevice->pciMsiFind(nos)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (irq_vector.numFds < 0)
|
||||
return false;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue