From 9cce9538838245f9bcdeb4c89e5d3f274130c4b0 Mon Sep 17 00:00:00 2001 From: ad Date: Mon, 18 Oct 1999 21:59:19 +0000 Subject: [PATCH] Don't panic so easily on failure; just issue notification. --- sys/dev/eisa/dpt_eisa.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/sys/dev/eisa/dpt_eisa.c b/sys/dev/eisa/dpt_eisa.c index 0554232fb948..bb698e1865f4 100644 --- a/sys/dev/eisa/dpt_eisa.c +++ b/sys/dev/eisa/dpt_eisa.c @@ -1,4 +1,4 @@ -/* $NetBSD: dpt_eisa.c,v 1.1 1999/09/29 20:38:51 ad Exp $ */ +/* $NetBSD: dpt_eisa.c,v 1.2 1999/10/18 21:59:19 ad Exp $ */ /* * Copyright (c) 1999 Andy Doran @@ -32,7 +32,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: dpt_eisa.c,v 1.1 1999/09/29 20:38:51 ad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: dpt_eisa.c,v 1.2 1999/10/18 21:59:19 ad Exp $"); #include #include @@ -146,16 +146,20 @@ dpt_eisa_attach(parent, self, aux) printf(": "); if (bus_space_map(iot, EISA_SLOT_ADDR(ea->ea_slot) + - DPT_EISA_SLOT_OFFSET, DPT_EISA_IOSIZE, 0, &ioh)) - panic("can't map i/o space"); + DPT_EISA_SLOT_OFFSET, DPT_EISA_IOSIZE, 0, &ioh)) { + printf("can't map i/o space\n"); + return; + } sc->sc_iot = iot; sc->sc_ioh = ioh; sc->sc_dmat = ea->ea_dmat; /* Map and establish the interrupt. */ - if (dpt_eisa_irq(iot, ioh, &irq)) - panic("HBA on invalid IRQ"); + if (dpt_eisa_irq(iot, ioh, &irq)) { + printf("HBA on invalid IRQ (%d)\n", irq); + return; + } if (eisa_intr_map(ec, irq, &ih)) { printf("can't map interrupt (%d)\n", irq);