summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2015-01-11 15:35:38 +0000
committermiod <miod@openbsd.org>2015-01-11 15:35:38 +0000
commitea603bb50cec1a490740b9711f5861d42ee8dcd1 (patch)
tree70bd2a7fe5e7f531b69b3a7b011fa6c2c7f6c928
parentMake sure to initialize nbpg to a sensible value in bootxx, when running on (diff)
downloadwireguard-openbsd-ea603bb50cec1a490740b9711f5861d42ee8dcd1.tar.xz
wireguard-openbsd-ea603bb50cec1a490740b9711f5861d42ee8dcd1.zip
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.
-rw-r--r--sys/arch/sparc/dev/if_ie.c6
1 files changed, 3 insertions, 3 deletions
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;
}