diff options
author | 2006-07-29 15:14:35 +0000 | |
---|---|---|
committer | 2006-07-29 15:14:35 +0000 | |
commit | aff43d42c491ab2bceae94073af4f5f7e75d8516 (patch) | |
tree | 9554261f596a466b09fd5a509f17d6453b75540f | |
parent | Better ``no dz console to a keyboard connector'' fix which does not interfere (diff) | |
download | wireguard-openbsd-aff43d42c491ab2bceae94073af4f5f7e75d8516.tar.xz wireguard-openbsd-aff43d42c491ab2bceae94073af4f5f7e75d8516.zip |
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.c | 4 |
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); } - |