PERFORCE change 54962 for review

Juli Mallett jmallett at FreeBSD.org
Mon Jun 14 22:45:02 GMT 2004


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

Change 54962 by jmallett at jmallett_oingo on 2004/06/14 22:43:41

	Kills interrupt sharing dead.

Affected files ...

.. //depot/projects/mips/sys/mips/sgimips/machdep_sgimips.c#34 edit

Differences ...

==== //depot/projects/mips/sys/mips/sgimips/machdep_sgimips.c#34 (text+ko) ====

@@ -182,6 +182,8 @@
 	if (intr < 0 || intr > 5)
 		panic("%s called for unknown hard intr %d", __func__, intr);
 	ih = &intrhard[intr];
+	if (ih->handler != NULL && ih->handler != handler)
+		panic("%s cannot share hard intr %d", __func__, intr);
 	ih->handler = handler;
 	ih->arg = arg;
 
@@ -197,6 +199,8 @@
 	if (intr < 0 || intr > 1)
 		panic("%s called for unknown soft intr %d", __func__, intr);
 	ih = &intrsoft[intr];
+	if (ih->handler != NULL && ih->handler != handler)
+		panic("%s cannot share soft intr %d", __func__, intr);
 	ih->handler = handler;
 	ih->arg = arg;
 


More information about the p4-projects mailing list