Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/broadcom fix a stupid bug at attach



details:   https://anonhg.NetBSD.org/src/rev/a0a9fe86b553
branches:  trunk
changeset: 332114:a0a9fe86b553
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sun Sep 07 15:21:27 2014 +0000

description:
fix a stupid bug at attach

diffstat:

 sys/arch/arm/broadcom/bcm2835_dmac.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r cba01684a1a7 -r a0a9fe86b553 sys/arch/arm/broadcom/bcm2835_dmac.c
--- a/sys/arch/arm/broadcom/bcm2835_dmac.c      Sun Sep 07 14:17:23 2014 +0000
+++ b/sys/arch/arm/broadcom/bcm2835_dmac.c      Sun Sep 07 15:21:27 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bcm2835_dmac.c,v 1.1 2014/09/07 14:16:44 jmcneill Exp $ */
+/* $NetBSD: bcm2835_dmac.c,v 1.2 2014/09/07 15:21:27 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2014 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -29,7 +29,7 @@
 #include "opt_ddb.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bcm2835_dmac.c,v 1.1 2014/09/07 14:16:44 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bcm2835_dmac.c,v 1.2 2014/09/07 15:21:27 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -143,7 +143,7 @@
                ch->ch_index = index;
                ch->ch_callback = NULL;
                ch->ch_callbackarg = NULL;
-               if ((index & sc->sc_channelmask) == 0)
+               if ((__BIT(index) & sc->sc_channelmask) == 0)
                        continue;
 
                aprint_normal(" DMA%d", index);



Home | Main Index | Thread Index | Old Index