From: miod Date: Sun, 11 Jan 2015 15:35:38 +0000 (+0000) Subject: Use the softc-specific function pointers for bcopy() and bzero() in iestart(), X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=ea603bb50cec1a490740b9711f5861d42ee8dcd1;p=openbsd Use the softc-specific function pointers for bcopy() and bzero() in iestart(), instead of, well, bcopy and bzero. This lets ie@vme transmit packets instead of panicing due to memset() trying to use 32-bit stores on a device address. --- diff --git a/sys/arch/sparc/dev/if_ie.c b/sys/arch/sparc/dev/if_ie.c index 27dce8a0519..1abe789c67f 100644 --- a/sys/arch/sparc/dev/if_ie.c +++ b/sys/arch/sparc/dev/if_ie.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ie.c,v 1.49 2014/12/22 02:26:54 tedu Exp $ */ +/* $OpenBSD: if_ie.c,v 1.50 2015/01/11 15:35:38 miod Exp $ */ /* $NetBSD: if_ie.c,v 1.33 1997/07/29 17:55:38 fair Exp $ */ /*- @@ -1421,7 +1421,7 @@ iestart(ifp) for (m0 = m; m && (len +m->m_len) < IE_TBUF_SIZE; m = m->m_next) { - bcopy(mtod(m, caddr_t), buffer, m->m_len); + (sc->memcopy)(mtod(m, caddr_t), buffer, m->m_len); buffer += m->m_len; len += m->m_len; } @@ -1431,7 +1431,7 @@ iestart(ifp) m_freem(m0); if (len < ETHER_MIN_LEN - ETHER_CRC_LEN) { - bzero(buffer, ETHER_MIN_LEN - ETHER_CRC_LEN - len); + (sc->memzero)(buffer, ETHER_MIN_LEN - ETHER_CRC_LEN - len); len = ETHER_MIN_LEN - ETHER_CRC_LEN; buffer += ETHER_MIN_LEN - ETHER_CRC_LEN; }