PERFORCE change 142746 for review
Andrew Turner
andrew at FreeBSD.org
Mon Jun 2 10:41:30 UTC 2008
http://perforce.freebsd.org/chv.cgi?CH=142746
Change 142746 by andrew at andrew_bender on 2008/06/02 10:40:58
Fix an off by 1 error. The value returned by ffs starts at 1 not 0.
Affected files ...
.. //depot/projects/arm/src/sys/arm/s3c2xx0/s3c2410.c#11 edit
Differences ...
==== //depot/projects/arm/src/sys/arm/s3c2xx0/s3c2410.c#11 (text+ko) ====
@@ -357,7 +357,7 @@
if (irq == 0)
return (-1);
- irq = ffs(irq);
+ irq = ffs(irq) - 1;
/* Clear the sub irq pending bit */
bus_space_write_4(&s3c2xx0_bs_tag,
More information about the p4-projects
mailing list