Skip to content
This repository was archived by the owner on Feb 29, 2024. It is now read-only.

Commit 32db7d9

Browse files
author
IgnoreWarnings
committed
move var to branch where it is needed
1 parent 835928e commit 32db7d9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/ips/intc.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,8 @@ InterruptController::waitForInterrupt(int irq)
124124
{
125125
assert(irq < maxIrqs);
126126

127-
const uintptr_t base = getBaseAddr(registerMemory);
128-
129127
if (this->polling[irq]) {
128+
const uintptr_t base = getBaseAddr(registerMemory);
130129
uint32_t isr, mask = 1 << irq;
131130

132131
do {

0 commit comments

Comments
 (0)