Forward compatibility: build relative-base link libraries where needed
[AROS.git] / arch / ppc-sam440 / exec / cachepostdma.c
blob72cc1045fb48274669a42c9d7bae868fb42176c4
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 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);
33 AROS_LIBFUNC_EXIT
34 } /* CachePostDMA */