[PATCH] 3 patches against linuxppc_dev-2.4.18-pre7

Mark Pilon mpilon at midrivers.com
Fri Feb 1 05:26:09 EST 2002


> >
> > In ppc405_pic_get_irq() the following code is executed:
> >
> >         irq = 32 - ffs(bits);
> >
> >         if (irq == NR_IRQS)
> >                 irq = -1;
> >
> >         return(irq);
> >
> > with NR_IRQS equal 48 the condition is never true !
> >


You might check the actual code generated for ffs() and verify
it works -- I ended up recoding this routine because ffs() wasn't
working correctly ... [ I forget the particulars, but the code
generated and behavior were not correct ];

Mark
--
Mark Pilon

Minolta-QMS
P.O. Box 37
Fallon, MT.  59326-0037
1-406-486-5539 (primary voice line)
1-406-853-0433 (cell)

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-embedded mailing list