From a1480dfbadab48100dfcc3db1270fb55a5e01d9b Mon Sep 17 00:00:00 2001 From: Andrew Gallatin Date: Wed, 29 Nov 2006 15:30:39 +0000 Subject: [PATCH] Fix mxge_submit_8rx() to behave like the comments says it does, and ensure that it copies at most 32 bytes at a time. --- sys/dev/mxge/if_mxge.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/dev/mxge/if_mxge.c b/sys/dev/mxge/if_mxge.c index a50d6c50bee6..4a274fd06670 100644 --- a/sys/dev/mxge/if_mxge.c +++ b/sys/dev/mxge/if_mxge.c @@ -1705,7 +1705,9 @@ mxge_submit_8rx(volatile mcp_kreq_ether_recv_t *dst, low = src->addr_low; src->addr_low = 0xffffffff; - mxge_pio_copy(dst, src, 8 * sizeof (*src)); + mxge_pio_copy(dst, src, 4 * sizeof (*src)); + mb(); + mxge_pio_copy(dst + 4, src + 4, 4 * sizeof (*src)); mb(); dst->addr_low = low; mb();