Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/evbarm/lubbock arm/xscale: Missed a spot with previ...



details:   https://anonhg.NetBSD.org/src/rev/735bd86aab63
branches:  trunk
changeset: 377478:735bd86aab63
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Thu Jul 13 21:29:49 2023 +0000

description:
arm/xscale: Missed a spot with previous find_first_bit commit.

diffstat:

 sys/arch/evbarm/lubbock/sacc_obio.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 5fb89842c59e -r 735bd86aab63 sys/arch/evbarm/lubbock/sacc_obio.c
--- a/sys/arch/evbarm/lubbock/sacc_obio.c       Thu Jul 13 20:39:24 2023 +0000
+++ b/sys/arch/evbarm/lubbock/sacc_obio.c       Thu Jul 13 21:29:49 2023 +0000
@@ -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);
 



Home | Main Index | Thread Index | Old Index