Module Name: src Committed By: riastradh Date: Thu Jul 13 21:29:49 UTC 2023
Modified Files: src/sys/arch/evbarm/lubbock: sacc_obio.c Log Message: arm/xscale: Missed a spot with previous find_first_bit commit. To generate a diff of this commit: cvs rdiff -u -r1.16 -r1.17 src/sys/arch/evbarm/lubbock/sacc_obio.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/evbarm/lubbock/sacc_obio.c diff -u src/sys/arch/evbarm/lubbock/sacc_obio.c:1.16 src/sys/arch/evbarm/lubbock/sacc_obio.c:1.17 --- src/sys/arch/evbarm/lubbock/sacc_obio.c:1.16 Thu Jul 13 19:42:24 2023 +++ src/sys/arch/evbarm/lubbock/sacc_obio.c Thu Jul 13 21:29:49 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: sacc_obio.c,v 1.16 2023/07/13 19:42:24 riastradh Exp $ */ +/* $NetBSD: sacc_obio.c,v 1.17 2023/07/13 21:29:49 riastradh Exp $ */ /*- * Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -34,7 +34,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: sacc_obio.c,v 1.16 2023/07/13 19:42:24 riastradh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: sacc_obio.c,v 1.17 2023/07/13 21:29:49 riastradh Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -214,7 +214,7 @@ sacc_obio_intr(void *arg) intstat.lo &= ~(1U<<i); } - while ((i = find_first_bit(intstat.hi)) >= 0) { + while ((i = fls32(intstat.hi) - 1) >= 0) { bus_space_write_4(sc->sc_iot, sc->sc_ioh, SACCIC_INTSTATCLR1, 1U<<i);