Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic Remove splbio()/splserial(), which should not try...



details:   https://anonhg.NetBSD.org/src/rev/d78532aa6f63
branches:  trunk
changeset: 472086:d78532aa6f63
user:      pk <pk%NetBSD.org@localhost>
date:      Tue Apr 20 20:21:04 1999 +0000

description:
Remove splbio()/splserial(), which should not try to protect bus_dma*(9)
internals.

diffstat:

 sys/dev/ic/lsi64854.c |  6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diffs (41 lines):

diff -r a39ba0242acc -r d78532aa6f63 sys/dev/ic/lsi64854.c
--- a/sys/dev/ic/lsi64854.c     Tue Apr 20 20:15:48 1999 +0000
+++ b/sys/dev/ic/lsi64854.c     Tue Apr 20 20:21:04 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lsi64854.c,v 1.6 1999/04/16 13:35:41 pk Exp $ */
+/*     $NetBSD: lsi64854.c,v 1.7 1999/04/20 20:21:04 pk Exp $ */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -279,7 +279,6 @@
 
        /* Program the DMA address */
        if (sc->sc_dmasize) {
-               int s = splbio();
                sc->sc_dvmaaddr = *sc->sc_dmaaddr;
                if (bus_dmamap_load(sc->sc_dmatag, sc->sc_dmamap,
                                *sc->sc_dmaaddr, sc->sc_dmasize,
@@ -287,7 +286,6 @@
                                BUS_DMA_NOWAIT))
                        panic("%s: cannot allocate DVMA address",
                              sc->sc_dev.dv_xname);
-               splx(s);
                bus_dmamap_sync(sc->sc_dmatag, sc->sc_dmamap,
                                (bus_addr_t)sc->sc_dvmaaddr, sc->sc_dmasize,
                                datain
@@ -516,7 +514,6 @@
 
        /* Program the DMA address */
        if (sc->sc_dmasize) {
-               int s = splserial();    /* XXX - what shall we choose? */
                sc->sc_dvmaaddr = *sc->sc_dmaaddr;
                if (bus_dmamap_load(sc->sc_dmatag, sc->sc_dmamap,
                                *sc->sc_dmaaddr, sc->sc_dmasize,
@@ -524,7 +521,6 @@
                                BUS_DMA_NOWAIT))
                        panic("%s: cannot allocate DVMA address",
                              sc->sc_dev.dv_xname);
-               splx(s);
                bus_dmamap_sync(sc->sc_dmatag, sc->sc_dmamap,
                                (bus_addr_t)sc->sc_dvmaaddr, sc->sc_dmasize,
                                datain



Home | Main Index | Thread Index | Old Index