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:
parent
d6fd533f0c
commit
6e1783612d
1 changed files with 2 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue