Make sure we add an interrupt resource if intline!=255.

This commit is contained in:
Doug Rabson 1999-10-26 07:40:41 +00:00
parent bfd825c01c
commit 4ed33d1537
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=52508
2 changed files with 2 additions and 2 deletions

View File

@ -1045,7 +1045,7 @@ pci_add_resources(device_t dev, pcicfgregs* cfg)
(unsigned int) base, ln2size);
}
}
if (cfg->intline)
if (cfg->intline != 255)
resource_list_add(rl, SYS_RES_IRQ, 0,
cfg->intline, cfg->intline, 1);
}

View File

@ -1045,7 +1045,7 @@ pci_add_resources(device_t dev, pcicfgregs* cfg)
(unsigned int) base, ln2size);
}
}
if (cfg->intline)
if (cfg->intline != 255)
resource_list_add(rl, SYS_RES_IRQ, 0,
cfg->intline, cfg->intline, 1);
}