summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2007-09-23 13:44:40 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2007-09-23 13:44:40 +0000
commitb9ecb95789106e2abd6089f46d47c728eca01d36 (patch)
tree457b13676b8f44ce3f07b33ddd0148f022c505b1 /sys/dev
parent2796cd1b7468dd77f3339228059f93913d72abed (diff)
Make sure to set physical address in bwi_newbuf()
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/bwi.c5
1 files changed, 3 insertions, 2 deletions
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:
/*