aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Moestl <tmm@FreeBSD.org>2002-02-13 15:44:58 +0000
committerThomas Moestl <tmm@FreeBSD.org>2002-02-13 15:44:58 +0000
commit95c7d7d47e96f4db32a440629f6bfe2d13702d84 (patch)
tree1fbe7c5589ec3112f85b81ae2840fc9aaa6477c1
parentf4a4c79dc080933de5281dc20b3f0e3bcc7e8912 (diff)
downloadsrc-95c7d7d47e96f4db32a440629f6bfe2d13702d84.tar.gz
src-95c7d7d47e96f4db32a440629f6bfe2d13702d84.zip
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.
Notes
Notes: svn path=/head/; revision=90613
-rw-r--r--sys/sparc64/pci/ofw_pci.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/sparc64/pci/ofw_pci.c b/sys/sparc64/pci/ofw_pci.c
index 67ee78713b8b..f56efafce396 100644
--- a/sys/sparc64/pci/ofw_pci.c
+++ b/sys/sparc64/pci/ofw_pci.c
@@ -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;