1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

ips/intc: remove access to xilinx driver in case we are using VFIO

Signed-off-by: Niklas Eiling <niklas.eiling@eonerc.rwth-aachen.de>
This commit is contained in:
Niklas Eiling 2024-02-07 15:14:04 +01:00 committed by Niklas Eiling
parent d6fd533f0c
commit 6e1783612d

View file

@ -120,9 +120,8 @@ InterruptController::disableInterrupt(InterruptController::IrqMaskType mask)
ssize_t InterruptController::waitForInterrupt(int irq) {
assert(irq < maxIrqs);
const uintptr_t base = getBaseAddr(registerMemory);
if (this->polling[irq]) {
const uintptr_t base = getBaseAddr(registerMemory);
uint32_t isr, mask = 1 << irq;
do {
@ -150,6 +149,7 @@ ssize_t InterruptController::waitForInterrupt(int irq) {
return -1;
} else if (sret == 0) {
logger->warn("timeout waiting for interrupt {}", irq);
return -1;
}
// Block until there has been an interrupt, read number of interrupts
@ -159,8 +159,6 @@ ssize_t InterruptController::waitForInterrupt(int irq) {
return -1;
}
logger->debug("Received {} interrupts on {}", count, irq);
return count;
}
}