From b9ecb95789106e2abd6089f46d47c728eca01d36 Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Sun, 23 Sep 2007 13:44:40 +0000 Subject: Make sure to set physical address in bwi_newbuf() --- sys/dev/ic/bwi.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/ic/bwi.c b/sys/dev/ic/bwi.c index fac9585d162..d1d40ebb41c 100644 --- a/sys/dev/ic/bwi.c +++ b/sys/dev/ic/bwi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bwi.c,v 1.39 2007/09/18 17:35:38 mglocker Exp $ */ +/* $OpenBSD: bwi.c,v 1.40 2007/09/23 13:44:39 jsg Exp $ */ /* * Copyright (c) 2007 The DragonFly Project. All rights reserved. @@ -7332,7 +7332,6 @@ bwi_newbuf(struct bwi_softc *sc, int buf_idx, int init) if (!init) bus_dmamap_unload(sc->sc_dmat, rxbuf->rb_dmap); rxbuf->rb_mbuf = m; - rxbuf->rb_paddr = paddr; /* * Swap RX buf's DMA map with the loaded temporary one @@ -7340,6 +7339,8 @@ bwi_newbuf(struct bwi_softc *sc, int buf_idx, int init) map = rxbuf->rb_dmap; rxbuf->rb_dmap = rbd->rbd_tmp_dmap; rbd->rbd_tmp_dmap = map; + paddr = rxbuf->rb_dmap->dm_segs[0].ds_addr; + rxbuf->rb_paddr = paddr; back: /* -- cgit v1.2.3