PERFORCE change 99603 for review

Paolo Pisati piso at FreeBSD.org
Mon Jun 19 14:55:20 UTC 2006


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

Change 99603 by piso at piso_newluxor on 2006/06/19 14:54:34

	Convert amd64 to use MI interrupt filter code too.

Affected files ...

.. //depot/projects/soc2006/intr_filter/amd64/amd64/intr_machdep.c#2 edit

Differences ...

==== //depot/projects/soc2006/intr_filter/amd64/amd64/intr_machdep.c#2 (text+ko) ====

@@ -170,7 +170,6 @@
 {
 	struct thread *td;
 	struct intr_event *ie;
-	struct intr_handler *ih;
 	int error, vector, thread;
 
 	td = curthread;
@@ -219,20 +218,8 @@
 	td->td_intr_nesting_level++;
 	thread = 0;
 	critical_enter();
-	TAILQ_FOREACH(ih, &ie->ie_handlers, ih_next) {
-		if (!(ih->ih_flags & IH_FAST)) {
-			thread = 1;
-			continue;
-		}
-		CTR4(KTR_INTR, "%s: exec %p(%p) for %s", __func__,
-		    ih->ih_handler, ih->ih_argument == NULL ? frame :
-		    ih->ih_argument, ih->ih_name);
-		if (ih->ih_argument == NULL)
-			ih->ih_handler(frame);
-		else
-			ih->ih_handler(ih->ih_argument);
-	}
-
+	thread = intr_filter_loop(ie, frame);
+	
 	/*
 	 * If there are any threaded handlers that need to run,
 	 * mask the source as well as sending it an EOI.  Otherwise,


More information about the p4-projects mailing list