Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Jun 2004 22:44:41 GMT
From:      Juli Mallett <jmallett@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 54962 for review
Message-ID:  <200406142244.i5EMifbM042383@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=54962

Change 54962 by jmallett@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;
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200406142244.i5EMifbM042383>