PERFORCE change 101794 for review

John Baldwin jhb at freebsd.org
Mon Jul 17 20:39:21 UTC 2006


On Monday 17 July 2006 15:46, Paolo Pisati wrote:
> http://perforce.freebsd.org/chv.cgi?CH=101794
> 
> Change 101794 by piso at 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.

I guess this fixes your problem. :)

> 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);
>  		}
> 

-- 
John Baldwin


More information about the p4-projects mailing list