improve pci driver

This commit is contained in:
Michael Shaw 2023-05-06 17:59:46 -04:00
commit 9ac63f29dd
6 changed files with 75 additions and 33 deletions

View file

@ -104,7 +104,7 @@ void irq_unmap(uint8_t irq)
int irq_highest_free()
{
for (int i = 0; i < 16; i++) {
for (int i = 15; i >= 0; i--) {
if (!irq_mapped[i])
return i;
}