Forward compatibility: build relative-base link libraries where needed
[AROS.git] / arch / ppc-chrp / exec / cachepostdma.c
blob738e78f001dd037764be081de81fcaa9798af03e
1 /*
2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: CachePostDMA() - Do what is necessary for DMA.
6 Lang: english
7 */
9 #define DEBUG 0
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)
26 AROS_LIBFUNC_INIT
28 if (!(flags & DMA_ReadFromRAM))
29 CacheClearE(address, *length, CACRF_InvalidateD | CACRF_ClearI);
31 AROS_LIBFUNC_EXIT
32 } /* CachePostDMA */