index 9458362cdf1e302a81e7d698be3aad5da74c8c5f..f6091bf470f99b3c00ac231f36d4c3d3787b3a42 100755 (executable)
v1= netapi_timing_stop();
if ((blockPtr <netapi_VM_mem_start)||( blockPtr>netapi_VM_mem_end)) return;
- //netapi_utilCacheInv(blockPtr, size);
- netapi_utilCacheInv(Osal_saGetSCPhyAddr(blockPtr), size);
+ _netapi_utilCacheInv(blockPtr, size);
v2= netapi_timing_stop();
cache_op_cycles += (v2-v1);
n_cache_op_cycles+=1;
v1= netapi_timing_stop();
if (((uint8_t*)blockPtr <netapi_VM_mem_start)||( (uint8_t*)blockPtr>netapi_VM_mem_end)) return;
- //netapi_utilCacheWbInv(blockPtr, size);
- //printf("osal> wbiv %x %x %d ..", blockPtr, Osal_saGetSCPhyAddr(blockPtr), size);
- //_netapi_utilCacheWbInv(blockPtr, size);
- netapi_utilCacheWb(blockPtr, size);
+ _netapi_utilCacheWbInv(blockPtr, size);
v2= netapi_timing_stop();
cache_op_cycles += (v2-v1);
n_cache_op_cycles+=1;
- //printf("done\n"); sleep(1);
#endif
return;
}
Cppi_HostDesc *nextBDPtr = (Cppi_HostDesc *)QMSS_DESC_PTR(descAddr);
while (nextBDPtr)
{
- //Osal_invalidateCache(nextBDPtr, TUNE_NETAPI_DESC_SIZE);
+ Osal_invalidateCache(nextBDPtr, TUNE_NETAPI_DESC_SIZE);
if (nextBDPtr->buffPtr)
{
nextBDPtr->buffPtr = (uint32_t)_Osal_qmssPhyToVirt((void *)(nextBDPtr->buffPtr));
if (!(nextBDPtr->buffPtr)) return (void *)0;
- //Osal_invalidateCache((void *)(nextBDPtr->buffPtr), nextBDPtr->buffLen);
+ Osal_invalidateCache((void *)(nextBDPtr->buffPtr), nextBDPtr->buffLen);
}
if (nextBDPtr->origBuffPtr)
{
descAddr = _Osal_qmssPhyToVirt(descAddr);
if (!descAddr) return (void *)0;
- //Osal_invalidateCache(descAddr, TUNE_NETAPI_DESC_SIZE);
+ Osal_invalidateCache(descAddr, TUNE_NETAPI_DESC_SIZE);
}
#endif
return descAddr;