[lwip 6/6] tms570: Add data cache support

Sebastian Huber sebastian.huber at embedded-brains.de
Tue Apr 4 14:55:16 UTC 2023


---
 uLan/ports/driver/tms570_emac/tms570_netif.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/uLan/ports/driver/tms570_emac/tms570_netif.c b/uLan/ports/driver/tms570_emac/tms570_netif.c
index 4149bcb..eac9527 100644
--- a/uLan/ports/driver/tms570_emac/tms570_netif.c
+++ b/uLan/ports/driver/tms570_emac/tms570_netif.c
@@ -1099,6 +1099,7 @@ tms570_eth_rx_pbuf_refill(struct tms570_netif_state *nf_state, int single_fl)
     } else {
       q = new_pbuf;
       for (;; ) {
+        rtems_cache_invalidate_multiple_data_lines(q->payload, q->len);
         curr_bd->bufptr = tms570_eth_swap_bufptr(q->payload);
         curr_bd->bufoff_len = tms570_eth_swap(q->len);
         curr_bd->flags_pktlen = tms570_eth_swap(EMAC_DSC_FLAG_OWNER);
-- 
2.35.3



More information about the devel mailing list