diff --git a/XilinxProcessorIPLib/drivers/axidma/examples/xaxidma_example_simple_intr.c b/XilinxProcessorIPLib/drivers/axidma/examples/xaxidma_example_simple_intr.c index 5a42ca63..add3a9a4 100644 --- a/XilinxProcessorIPLib/drivers/axidma/examples/xaxidma_example_simple_intr.c +++ b/XilinxProcessorIPLib/drivers/axidma/examples/xaxidma_example_simple_intr.c @@ -326,6 +326,9 @@ int main(void) * is enabled */ Xil_DCacheFlushRange((u32)TxBufferPtr, MAX_PKT_LEN); +#ifdef __aarch64__ + Xil_DCacheFlushRange((UINTPTR)RxBufferPtr, MAX_PKT_LEN); +#endif /* Send a packet */ for(Index = 0; Index < Tries; Index ++) { @@ -438,7 +441,9 @@ static int CheckData(int Length, u8 StartValue) /* Invalidate the DestBuffer before receiving the data, in case the * Data Cache is enabled */ +#ifndef __aarch64__ Xil_DCacheInvalidateRange((u32)RxPacket, Length); +#endif for(Index = 0; Index < Length; Index++) { if (RxPacket[Index] != Value) { diff --git a/XilinxProcessorIPLib/drivers/axidma/examples/xaxidma_example_simple_poll.c b/XilinxProcessorIPLib/drivers/axidma/examples/xaxidma_example_simple_poll.c index 06eb019b..2f56ab55 100644 --- a/XilinxProcessorIPLib/drivers/axidma/examples/xaxidma_example_simple_poll.c +++ b/XilinxProcessorIPLib/drivers/axidma/examples/xaxidma_example_simple_poll.c @@ -277,6 +277,9 @@ int XAxiDma_SimplePollExample(u16 DeviceId) * is enabled */ Xil_DCacheFlushRange((UINTPTR)TxBufferPtr, MAX_PKT_LEN); +#ifdef __aarch64__ + Xil_DCacheFlushRange((UINTPTR)RxBufferPtr, MAX_PKT_LEN); +#endif for(Index = 0; Index < Tries; Index ++) {