Date: Tue, 30 May 2006 19:21:38 GMT From: Kip Macy <kmacy@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 98151 for review Message-ID: <200605301921.k4UJLcRm055013@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=98151 Change 98151 by kmacy@kmacy_storage:sun4v_work on 2006/05/30 19:20:59 fix KASSERT remove debug printf Affected files ... .. //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/hv_pci.c#42 edit Differences ... ==== //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/hv_pci.c#42 (text+ko) ==== @@ -431,10 +431,9 @@ sc = device_get_softc(dev); rid = rman_get_start(ires); + KASSERT(rid >= 1 && rid <= 4, ("interrupt out of range")); + pciintr = rid - 1; - printf("pciintr=0x%x\n", pciintr); - /* sun4v uses 1 through 4 interrupts */ - KASSERT(pciintr >= 1 && pciintr <= 4, ("interrupt out of range")); if (sc->hs_intr[pciintr] == NULL) { if ((sc->hs_intr[pciintr] = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, RF_SHAREABLE | RF_ACTIVE)) == NULL) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200605301921.k4UJLcRm055013>