-/* $OpenBSD: dma.c,v 1.18 2007/11/09 17:46:00 miod Exp $ */
+/* $OpenBSD: dma.c,v 1.19 2008/07/18 21:39:52 miod Exp $ */
/* $NetBSD: dma.c,v 1.19 1997/05/05 21:02:39 thorpej Exp $ */
/*
struct dma_softc *sc = &dma_softc;
int i, chan, s;
-#if 1
- s = splhigh(); /* XXXthorpej */
-#else
- s = splbio();
-#endif
+ s = splvm();
chan = dq->dq_chan;
for (i = NDMACHAN - 1; i >= 0; i--) {
struct dmaqueue *dn;
int chan, s;
-#if 1
- s = splhigh(); /* XXXthorpej */
-#else
- s = splbio();
-#endif
+ s = splvm();
#ifdef DEBUG
dmatimo[unit] = 0;
struct dma_softc *sc = arg;
for (i = 0; i < NDMACHAN; i++) {
- s = splbio();
+ s = splvm();
if (dmatimo[i]) {
if (dmatimo[i] > 1)
printf("dma channel %d timeout #%d\n",