mtod() with uintptr_t, not bus_addr_t.
This commit is contained in:
parent
c9fa7a702a
commit
4f3eac8332
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: rtl81x9.c,v 1.37 2001/08/07 02:59:53 kanaoka Exp $ */
|
||||
/* $NetBSD: rtl81x9.c,v 1.38 2001/08/14 11:57:26 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1997, 1998
|
||||
@ -1290,7 +1290,7 @@ STATIC void rtk_start(ifp)
|
||||
* fit in one DMA segment, and we need to copy. Note,
|
||||
* the packet must also be aligned.
|
||||
*/
|
||||
if ((mtod(m_head, bus_addr_t) & 3) != 0 ||
|
||||
if ((mtod(m_head, uintptr_t) & 3) != 0 ||
|
||||
bus_dmamap_load_mbuf(sc->sc_dmat, txd->txd_dmamap,
|
||||
m_head, BUS_DMA_WRITE|BUS_DMA_NOWAIT) != 0) {
|
||||
MGETHDR(m_new, M_DONTWAIT, MT_DATA);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: tulip.c,v 1.96 2001/07/23 17:20:04 thorpej Exp $ */
|
||||
/* $NetBSD: tulip.c,v 1.97 2001/08/14 11:57:26 mrg Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998, 1999, 2000 The NetBSD Foundation, Inc.
|
||||
@ -738,7 +738,7 @@ tlp_start(ifp)
|
||||
* likely we'll trip the alignment test than the
|
||||
* more-than-one-segment test.
|
||||
*/
|
||||
if ((sc->sc_ntxsegs == 1 && (mtod(m0, bus_addr_t) & 3) != 0) ||
|
||||
if ((sc->sc_ntxsegs == 1 && (mtod(m0, uintptr_t) & 3) != 0) ||
|
||||
bus_dmamap_load_mbuf(sc->sc_dmat, dmamap, m0,
|
||||
BUS_DMA_WRITE|BUS_DMA_NOWAIT) != 0) {
|
||||
MGETHDR(m, M_DONTWAIT, MT_DATA);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: if_vr.c,v 1.51 2001/07/23 17:26:50 thorpej Exp $ */
|
||||
/* $NetBSD: if_vr.c,v 1.52 2001/08/14 11:57:27 mrg Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
|
||||
@ -937,7 +937,7 @@ vr_start(ifp)
|
||||
* fit in one DMA segment, and we need to copy. Note,
|
||||
* the packet must also be aligned.
|
||||
*/
|
||||
if ((mtod(m0, bus_addr_t) & 3) != 0 ||
|
||||
if ((mtod(m0, uintptr_t) & 3) != 0 ||
|
||||
bus_dmamap_load_mbuf(sc->vr_dmat, ds->ds_dmamap, m0,
|
||||
BUS_DMA_WRITE|BUS_DMA_NOWAIT) != 0) {
|
||||
MGETHDR(m, M_DONTWAIT, MT_DATA);
|
||||
|
Loading…
Reference in New Issue
Block a user