summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2006-07-29 15:14:36 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2006-07-29 15:14:36 +0000
commit9a9362fe01f288a9d2c2d7da565ba83427fa2610 (patch)
tree26ccb3c8b05797d3684438ee6eb813dbf485bb89
parent38b73e8a9d2e1da9fdda4260c1d2909553f64a69 (diff)
not keeping the dma tag around means we panic when we try to use it during
allocation of dmaable memory.
-rw-r--r--sys/dev/pci/arc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/arc.c b/sys/dev/pci/arc.c
index c2cafaa030e..0629f474174 100644
--- a/sys/dev/pci/arc.c
+++ b/sys/dev/pci/arc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: arc.c,v 1.1 2006/07/29 05:08:41 dlg Exp $ */
+/* $OpenBSD: arc.c,v 1.2 2006/07/29 15:14:35 dlg Exp $ */
/*
* Copyright (c) 2006 David Gwynne <dlg@openbsd.org>
@@ -311,6 +311,7 @@ arc_map_pci_resources(struct arc_softc *sc, struct pci_attach_args *pa)
sc->sc_pc = pa->pa_pc;
sc->sc_tag = pa->pa_tag;
+ sc->sc_dmat = pa->pa_dmat;
memtype = pci_mapreg_type(sc->sc_pc, sc->sc_tag, ARC_PCI_BAR);
if (pci_mapreg_map(pa, ARC_PCI_BAR, memtype, 0, &sc->sc_iot,
@@ -612,4 +613,3 @@ arc_put_ccb(struct arc_softc *sc, struct arc_ccb *ccb)
bzero(ccb->ccb_cmd, sc->sc_req_size);
TAILQ_INSERT_TAIL(&sc->sc_ccb_free, ccb, ccb_link);
}
-