diff packages/devs/eth/powerpc/fec/current/src/if_fec.c @ 275:c3ec301f39df

Fix some cache flush/invalidate booboos.
author gthomas
date Fri, 09 Aug 2002 00:15:28 +0000
parents ae8511176102
children 38e03cb8babb
line wrap: on
line diff
--- a/packages/devs/eth/powerpc/fec/current/src/if_fec.c
+++ b/packages/devs/eth/powerpc/fec/current/src/if_fec.c
@@ -642,7 +642,7 @@ fec_eth_RxEvent(struct eth_drv_sc *sc)
     HAL_DCACHE_IS_ENABLED(cache_state);
 #ifndef FEC_USE_EPPC_BD
     if (cache_state) {
-        HAL_DCACHE_FLUSH(fec_eth_rxring, sizeof(fec_eth_rxring));  // Make sure no stale data
+        HAL_DCACHE_INVALIDATE(fec_eth_rxring, sizeof(fec_eth_rxring));  // Make sure no stale data
     }
 #endif
     rxbd = rxfirst = qi->rnext;
@@ -665,7 +665,7 @@ fec_eth_RxEvent(struct eth_drv_sc *sc)
     qi->rnext = (struct fec_bd *)rxbd;
 #ifndef FEC_USE_EPPC_BD
     if (cache_state) {
-        HAL_DCACHE_FLUSH(fec_eth_rxring, sizeof(fec_eth_rxring));  // Make sure no stale data
+        HAL_DCACHE_INVALIDATE(fec_eth_rxring, sizeof(fec_eth_rxring));  // Make sure no stale data
     }
 #endif
     qi->fec->RxUpdate = 0x0F0F0F0F;  // Any write tells machine to look for work