Don't panic when no interrupt map can be found for a PCI bus; this seems
to happen on some models, like the Netra T1.
This commit is contained in:
parent
f4a4c79dc0
commit
95c7d7d47e
@ -166,8 +166,11 @@ ofw_pci_init_intr(device_t dev, phandle_t bus, struct ofw_pci_imap *intrmap,
|
||||
if (nintrmap == -1 ||
|
||||
OF_getprop(bus, "interrupt-map-mask",
|
||||
&lintrmapmsk, sizeof(lintrmapmsk)) == -1) {
|
||||
panic("ofw_pci_init_intr: could not get "
|
||||
"interrupt map properties");
|
||||
printf("ofw_pci_init_intr: could not get "
|
||||
"interrupt map properties\n");
|
||||
if (nintrmap != -1)
|
||||
free(intrmap, M_OFWPROP);
|
||||
return;
|
||||
}
|
||||
intrmapmsk = &lintrmapmsk;
|
||||
freemap = 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user