Module Name: src Committed By: jmcneill Date: Sun Sep 7 15:21:27 UTC 2014
Modified Files: src/sys/arch/arm/broadcom: bcm2835_dmac.c Log Message: fix a stupid bug at attach To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sys/arch/arm/broadcom/bcm2835_dmac.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/arm/broadcom/bcm2835_dmac.c diff -u src/sys/arch/arm/broadcom/bcm2835_dmac.c:1.1 src/sys/arch/arm/broadcom/bcm2835_dmac.c:1.2 --- src/sys/arch/arm/broadcom/bcm2835_dmac.c:1.1 Sun Sep 7 14:16:44 2014 +++ src/sys/arch/arm/broadcom/bcm2835_dmac.c Sun Sep 7 15:21:27 2014 @@ -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 <jmcne...@invisible.ca> @@ -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 @@ bcm_dmac_attach(device_t parent, device_ 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);