PERFORCE change 88183 for review

Warner Losh imp at FreeBSD.org
Wed Dec 14 10:23:26 PST 2005


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

Change 88183 by imp at imp_Speedy on 2005/12/14 18:22:43

	Better panic message, allocate the interrupt shareable (but I
	just realized I didn't check to see if the ISR can cope).

Affected files ...

.. //depot/projects/arm/src/sys/arm/at91/at91rm92timer.c#3 edit

Differences ...

==== //depot/projects/arm/src/sys/arm/at91/at91rm92timer.c#3 (text+ko) ====

@@ -136,9 +136,10 @@
 	bus_space_write_4(timer_softc->sc_st, timer_softc->sc_sh,
 	    TIMER_IDR, 0xffffffff);
 	/* The system timer shares the system irq (1) */
-	irq = bus_alloc_resource(dev, SYS_RES_IRQ, &rid, 1, 1, 1, RF_ACTIVE);
+	irq = bus_alloc_resource(dev, SYS_RES_IRQ, &rid, 1, 1, 1,
+	  RF_ACTIVE | RF_SHAREABLE);
 	if (!irq)
-		panic("Unable to all irq for the system timer");
+		panic("Unable to allocate irq for the system timer");
 	else
 		bus_setup_intr(dev, irq, INTR_TYPE_CLK | INTR_FAST,
 		    clock_intr, NULL, &ih);


More information about the p4-projects mailing list