mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-07-27 07:45:54 +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
3ef41be02f
commit
2360b084ff
@ -925,6 +925,9 @@ dwc_rxfinish_locked(struct dwc_softc *sc)
|
||||
/* Remove trailing FCS */
|
||||
m_adj(m, -ETHER_CRC_LEN);
|
||||
|
||||
#ifdef __rtems__
|
||||
rtems_cache_invalidate_multiple_data_lines(m->m_data, m->m_len);
|
||||
#endif /* __rtems__ */
|
||||
DWC_UNLOCK(sc);
|
||||
(*ifp->if_input)(ifp, m);
|
||||
DWC_LOCK(sc);
|
||||
|
Loading…
x
Reference in New Issue
Block a user