From: Joshua Wise Date: Thu, 4 Dec 2008 23:12:38 +0000 (-0500) Subject: Suffer from a slight case of v2p-itis X-Git-Url: http://git.joshuawise.com/netwatch.git/commitdiff_plain/d401e73e740bcf5e7d1b66aeae9839493a8c1686?ds=inline;hp=2a44d50497d0bf670265bd8a2eb5d75cc92ebb08 Suffer from a slight case of v2p-itis --- diff --git a/net/3c90x.c b/net/3c90x.c index e3236d9..ea7914c 100644 --- a/net/3c90x.c +++ b/net/3c90x.c @@ -489,7 +489,7 @@ a3c90x_transmit(struct pbuf *p) n = 0; for (; p; p = p->next) { - INF_3C90X.TransmitDPD.segments[n].addr = (unsigned int)p->payload; + INF_3C90X.TransmitDPD.segments[n].addr = v2p(p->payload); INF_3C90X.TransmitDPD.segments[n].len = p->len | (p->next ? 0 : (1 << 31)); len += p->len; n++;