diff options
author | Eric Norum <WENorum@lbl.gov> | 2005-04-21 00:25:53 +0000 |
---|---|---|
committer | Eric Norum <WENorum@lbl.gov> | 2005-04-21 00:25:53 +0000 |
commit | ac9bbe7bb2e443548852a3f555ebcccf2812cc46 (patch) | |
tree | 1b637034ec630090ad2eabbff737001e8eb9295c /c/src/lib/libbsp/m68k/uC5282/network/network.c | |
parent | 2005-04-20 Ralf Corsepius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-ac9bbe7bb2e443548852a3f555ebcccf2812cc46.tar.bz2 |
Try insructioin-only cache.
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libbsp/m68k/uC5282/network/network.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/c/src/lib/libbsp/m68k/uC5282/network/network.c b/c/src/lib/libbsp/m68k/uC5282/network/network.c index 85e1a4f81a..a2e700d302 100644 --- a/c/src/lib/libbsp/m68k/uC5282/network/network.c +++ b/c/src/lib/libbsp/m68k/uC5282/network/network.c @@ -407,16 +407,18 @@ fec_rxDaemon (void *arg) struct ether_header *eh; int len = rxBd->length - sizeof(uint32_t);; + m = sc->rxMbuf[rxBdIndex]; +#ifdef RTEMS_MCF5282_BSP_ENABLE_DATA_CACHE /* - * Invalidate the cache and push the packet up. - * The cache is so small that it's more efficient to just - * invalidate the whole thing unless the packet is very small. + * Invalidate the cache. The cache is so small that it's + * more efficient to just invalidate the whole thing unless + * the packet is very small. */ - m = sc->rxMbuf[rxBdIndex]; if (len < 128) rtems_cache_invalidate_multiple_data_lines(m->m_data, len); else rtems_cache_invalidate_entire_data(); +#endif m->m_len = m->m_pkthdr.len = len - sizeof(struct ether_header); eh = mtod(m, struct ether_header *); m->m_data += sizeof(struct ether_header); |