mirror of
https://github.com/Dasharo/zephyr.git
synced 2026-03-06 14:57:20 -08:00
gen_idt: correctly warn on duplicate IRQ connections
Now if you try to call IRQ_CONNECT() multiple times on the same IRQ line it will correcly fail the build, as intended. Change-Id: Ia629ae3dd009bd3a2e1dbd9797dc2b723b02d234 Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
committed by
Gerrit Code Review
parent
8f0211dcf3
commit
4900aecc8e
@@ -391,12 +391,13 @@ static void validate_irq(void)
|
||||
show_entry(&supplied_entry[i]);
|
||||
clean_exit(-1);
|
||||
}
|
||||
num_irqs[i]++;
|
||||
num_irqs[supplied_entry[i].irq]++;
|
||||
}
|
||||
|
||||
for (i = 0; i < num_irq_lines; i++) {
|
||||
if (num_irqs[i] > 1) {
|
||||
fprintf(stderr, "Multiple requests for IRQ %d detected.\n", i);
|
||||
fprintf(stderr, "Multiple requests (%d) for IRQ %d detected.\n",
|
||||
num_irqs[i], i);
|
||||
clean_exit(-1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user