Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/evbarm/g42xxeb complete the previous - there were t...



details:   https://anonhg.NetBSD.org/src/rev/dc5a4cc3d479
branches:  trunk
changeset: 377475:dc5a4cc3d479
user:      mrg <mrg%NetBSD.org@localhost>
date:      Thu Jul 13 20:22:29 2023 +0000

description:
complete the previous - there were two calls to find_first_bit() to fix.

diffstat:

 sys/arch/evbarm/g42xxeb/obio.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 7d478d8952cd -r dc5a4cc3d479 sys/arch/evbarm/g42xxeb/obio.c
--- a/sys/arch/evbarm/g42xxeb/obio.c    Thu Jul 13 19:59:08 2023 +0000
+++ b/sys/arch/evbarm/g42xxeb/obio.c    Thu Jul 13 20:22:29 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: obio.c,v 1.14 2023/07/13 19:42:24 riastradh Exp $ */
+/*     $NetBSD: obio.c,v 1.15 2023/07/13 20:22:29 mrg Exp $ */
 
 /*
  * Copyright (c) 2002, 2003, 2005  Genetec corp.  All rights reserved.
@@ -156,7 +156,7 @@ obio_softint(void *arg)
        int psw;
 
        psw = disable_interrupts(I32_bit);
-       while ((irqno = find_first_bit(sc->sc_intr_pending)) >= 0) {
+       while ((irqno = fls32(sc->sc_intr_pending)) >= 0) {
                sc->sc_intr_pending &= ~(1U<<irqno);
 
                restore_interrupts(psw);



Home | Main Index | Thread Index | Old Index