2 Copyright � 1995-2013, The AROS Development Team. All rights reserved.
5 Desc: CachePostDMA() - Do what is necessary for DMA.
11 #include <aros/debug.h>
12 #include <exec/types.h>
13 #include <exec/execbase.h>
14 #include <aros/libcall.h>
16 #include <proto/exec.h>
18 /* See rom/exec/cachepostdma.c for documentation */
20 AROS_LH3(void, CachePostDMA
,
21 AROS_LHA(APTR
, address
, A0
),
22 AROS_LHA(ULONG
*, length
, A1
),
23 AROS_LHA(ULONG
, flags
, D0
),
24 struct ExecBase
*, SysBase
, 128, Exec
)
28 D(bug("[exec] CachePostDMA(%08x, %d, %c)\n", address
, *length
, flags
& DMA_ReadFromRAM
? 'R':'W'));
30 if (!(flags
& DMA_ReadFromRAM
))
31 CacheClearE(address
, *length
, CACRF_InvalidateD
| CACRF_ClearI
);