diff options
| author | Peter Wemm <peter@FreeBSD.org> | 1999-05-08 20:24:44 +0000 |
|---|---|---|
| committer | Peter Wemm <peter@FreeBSD.org> | 1999-05-08 20:24:44 +0000 |
| commit | f98661016d09dab0d2282f77fb282506da2a483b (patch) | |
| tree | eab46f766a72e61944ae2ec818f05f94b7adc875 | |
| parent | 05170bddd783de3d4d8a0103273e0ebfc1de9340 (diff) | |
Notes
| -rw-r--r-- | sys/amd64/amd64/legacy.c | 8 | ||||
| -rw-r--r-- | sys/amd64/amd64/nexus.c | 8 | ||||
| -rw-r--r-- | sys/i386/i386/legacy.c | 8 | ||||
| -rw-r--r-- | sys/i386/i386/nexus.c | 8 |
4 files changed, 16 insertions, 16 deletions
diff --git a/sys/amd64/amd64/legacy.c b/sys/amd64/amd64/legacy.c index 76e4d3f8dac5..70edb5d79e0b 100644 --- a/sys/amd64/amd64/legacy.c +++ b/sys/amd64/amd64/legacy.c @@ -26,7 +26,7 @@ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: nexus.c,v 1.4 1999/04/21 07:26:26 peter Exp $ + * $Id: nexus.c,v 1.5 1999/04/24 04:16:22 kato Exp $ */ /* @@ -307,9 +307,9 @@ nexus_setup_intr(device_t bus, device_t child, struct resource *irq, int error, icflags; char name[32]; - if (child) - device_printf(child, "interrupting at irq %d\n", - (int)irq->r_start); + /* somebody tried to setup an irq that failed to allocate! */ + if (irq == NULL) + panic("nexus_setup_intr: NULL irq resource!"); *cookiep = 0; if (irq->r_flags & RF_SHAREABLE) diff --git a/sys/amd64/amd64/nexus.c b/sys/amd64/amd64/nexus.c index 76e4d3f8dac5..70edb5d79e0b 100644 --- a/sys/amd64/amd64/nexus.c +++ b/sys/amd64/amd64/nexus.c @@ -26,7 +26,7 @@ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: nexus.c,v 1.4 1999/04/21 07:26:26 peter Exp $ + * $Id: nexus.c,v 1.5 1999/04/24 04:16:22 kato Exp $ */ /* @@ -307,9 +307,9 @@ nexus_setup_intr(device_t bus, device_t child, struct resource *irq, int error, icflags; char name[32]; - if (child) - device_printf(child, "interrupting at irq %d\n", - (int)irq->r_start); + /* somebody tried to setup an irq that failed to allocate! */ + if (irq == NULL) + panic("nexus_setup_intr: NULL irq resource!"); *cookiep = 0; if (irq->r_flags & RF_SHAREABLE) diff --git a/sys/i386/i386/legacy.c b/sys/i386/i386/legacy.c index 76e4d3f8dac5..70edb5d79e0b 100644 --- a/sys/i386/i386/legacy.c +++ b/sys/i386/i386/legacy.c @@ -26,7 +26,7 @@ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: nexus.c,v 1.4 1999/04/21 07:26:26 peter Exp $ + * $Id: nexus.c,v 1.5 1999/04/24 04:16:22 kato Exp $ */ /* @@ -307,9 +307,9 @@ nexus_setup_intr(device_t bus, device_t child, struct resource *irq, int error, icflags; char name[32]; - if (child) - device_printf(child, "interrupting at irq %d\n", - (int)irq->r_start); + /* somebody tried to setup an irq that failed to allocate! */ + if (irq == NULL) + panic("nexus_setup_intr: NULL irq resource!"); *cookiep = 0; if (irq->r_flags & RF_SHAREABLE) diff --git a/sys/i386/i386/nexus.c b/sys/i386/i386/nexus.c index 76e4d3f8dac5..70edb5d79e0b 100644 --- a/sys/i386/i386/nexus.c +++ b/sys/i386/i386/nexus.c @@ -26,7 +26,7 @@ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: nexus.c,v 1.4 1999/04/21 07:26:26 peter Exp $ + * $Id: nexus.c,v 1.5 1999/04/24 04:16:22 kato Exp $ */ /* @@ -307,9 +307,9 @@ nexus_setup_intr(device_t bus, device_t child, struct resource *irq, int error, icflags; char name[32]; - if (child) - device_printf(child, "interrupting at irq %d\n", - (int)irq->r_start); + /* somebody tried to setup an irq that failed to allocate! */ + if (irq == NULL) + panic("nexus_setup_intr: NULL irq resource!"); *cookiep = 0; if (irq->r_flags & RF_SHAREABLE) |
