[rtems-libbsd commit] if_dwc: Invalidate read buffer again
Sebastian Huber
sebh at rtems.org
Fri Sep 11 09:52:12 UTC 2015
Module: rtems-libbsd
Branch: master
Commit: 8c5aecfde3992054d2929a238d9ae666dd72682b
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=8c5aecfde3992054d2929a238d9ae666dd72682b
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Mon Sep 7 08:33:16 2015 +0200
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.
---
freebsd/sys/dev/dwc/if_dwc.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/freebsd/sys/dev/dwc/if_dwc.c b/freebsd/sys/dev/dwc/if_dwc.c
index 24882ce..359226d 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);
More information about the vc
mailing list