summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2015-09-07 08:33:16 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2015-09-11 10:53:38 +0200
commit8c5aecfde3992054d2929a238d9ae666dd72682b (patch)
treee71c385ac11f2a62c157dbf5c498b8df14d47a0c
parent986f7dd050599048244639bf33d5257c13c27b1d (diff)
downloadrtems-libbsd-8c5aecfde3992054d2929a238d9ae666dd72682b.tar.bz2
if_dwc: Invalidate read buffer again
This may prevent problems in case a cache line prefetch added some lines to the cache during a DMA transfer.
-rw-r--r--freebsd/sys/dev/dwc/if_dwc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/freebsd/sys/dev/dwc/if_dwc.c b/freebsd/sys/dev/dwc/if_dwc.c
index 24882cee..359226de 100644
--- a/freebsd/sys/dev/dwc/if_dwc.c
+++ b/freebsd/sys/dev/dwc/if_dwc.c
@@ -985,6 +985,7 @@ dwc_rxfinish_locked(struct dwc_softc *sc)
if_inc_counter(ifp, IFCOUNTER_IPACKETS, 1);
#else /* __rtems__ */
++ifp->if_ipackets;
+ rtems_cache_invalidate_multiple_data_lines(m->m_data, m->m_len);
#endif /* __rtems__ */
DWC_UNLOCK(sc);