PERFORCE change 98151 for review

Kip Macy kmacy at FreeBSD.org
Tue May 30 12:23:13 PDT 2006


http://perforce.freebsd.org/chv.cgi?CH=98151

Change 98151 by kmacy at 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) {


More information about the p4-projects mailing list