Module Name:    src
Committed By:   mrg
Date:           Thu Jul 13 20:22:29 UTC 2023

Modified Files:
        src/sys/arch/evbarm/g42xxeb: obio.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/sys/arch/evbarm/g42xxeb/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/g42xxeb/obio.c
diff -u src/sys/arch/evbarm/g42xxeb/obio.c:1.14 src/sys/arch/evbarm/g42xxeb/obio.c:1.15
--- src/sys/arch/evbarm/g42xxeb/obio.c:1.14	Thu Jul 13 19:42:24 2023
+++ src/sys/arch/evbarm/g42xxeb/obio.c	Thu Jul 13 20:22:29 2023
@@ -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);

Reply via email to