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

Commit 877fd5f

Browse files
author
IgnoreWarnings
committed
fix interrupt number
1 parent e0c147c commit 877fd5f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/core.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,6 @@ std::list<std::shared_ptr<Core>> CoreFactory::make(Card *card,
185185
// });
186186

187187
std::vector<const char *> intc_names = {"mm2s_introut", "s2mm_introut"};
188-
189-
int num = 0;
190188
for (auto name : intc_names)
191189
{
192190
auto intc = new PlatformInterruptController();
@@ -195,11 +193,11 @@ std::list<std::shared_ptr<Core>> CoreFactory::make(Card *card,
195193

196194
const char *irqName = name;
197195
std::string irqControllerName = "PlatformInterruptController";
196+
int num = 0;
198197

199198
logger->debug("IRQ: {} -> {}:{}", irqName, irqControllerName, num);
200199
ip->irqs[irqName] = {num, intc, ""};
201200

202-
num++;
203201
}
204202
}
205203

0 commit comments

Comments
 (0)