Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Jul 2006 19:46:15 GMT
From:      Paolo Pisati <piso@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 101794 for review
Message-ID:  <200607171946.k6HJkFLs031826@repoman.freebsd.org>

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

Change 101794 by piso@piso_newluxor on 2006/07/17 19:45:55

	Obviously if we return different ORed values, we use &
	instead of == to check the return value.

Affected files ...

.. //depot/projects/soc2006/intr_filter/kern/kern_intr.c#8 edit

Differences ...

==== //depot/projects/soc2006/intr_filter/kern/kern_intr.c#8 (text+ko) ====

@@ -798,14 +798,14 @@
 		}
 
 		/* Mark handler for later execution in ithread. */
-		if (ret2 == FILTER_SCHEDULE_THREAD) {
+		if (ret2 & FILTER_SCHEDULE_THREAD) {
 			ih->ih_need = 1; 
 			ret |= FILTER_SCHEDULE_THREAD;
 			continue;
 		}
 
 		/* Interrupt served in filter. */
-		if (ret2 == FILTER_HANDLED) {
+		if (ret2 & FILTER_HANDLED) {
 			ret |= FILTER_HANDLED;
 			return (ret);
 		}



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