[rtems-libbsd commit] if_dwc: Invalidate read buffer again
Sebastian Huber
sebh at rtems.org
Fri Sep 11 09:56:19 UTC 2015
Module: rtems-libbsd
Branch: 4.11
Commit: da08198f723aad827bd4dbb14508d2af73548a5c
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=da08198f723aad827bd4dbb14508d2af73548a5c
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