mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-05-13 18:49:19 +08:00
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.
This commit is contained in:
parent
3cb5e9ef6d
commit
da08198f72
@ -985,6 +985,7 @@ dwc_rxfinish_locked(struct dwc_softc *sc)
|
|||||||
if_inc_counter(ifp, IFCOUNTER_IPACKETS, 1);
|
if_inc_counter(ifp, IFCOUNTER_IPACKETS, 1);
|
||||||
#else /* __rtems__ */
|
#else /* __rtems__ */
|
||||||
++ifp->if_ipackets;
|
++ifp->if_ipackets;
|
||||||
|
rtems_cache_invalidate_multiple_data_lines(m->m_data, m->m_len);
|
||||||
#endif /* __rtems__ */
|
#endif /* __rtems__ */
|
||||||
|
|
||||||
DWC_UNLOCK(sc);
|
DWC_UNLOCK(sc);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user