2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
6 /******************************************************************************
9 AROS_LH3(void, CacheClearE,
12 AROS_LHA(APTR, address, A0),
13 AROS_LHA(ULONG, length, D0),
14 AROS_LHA(ULONG, caches, D1),
17 struct ExecBase *, SysBase, 107, Exec)
20 Flushes the contents of the CPU caches for a given area of memory
24 address - First byte in memory
25 length - number of bytes (~0 means all addresses).
26 caches - CPU caches affected
27 CACRF_ClearI - Instruction cache
28 CACRF_ClearD - Data cache
37 Currently this only works on Linux/m68k.
38 It ignores the caches argument and clears all caches.
46 ******************************************************************************/
57 .globl AROS_SLIB_ENTRY(CacheClearE,Exec)
58 .type AROS_SLIB_ENTRY(CacheClearE,Exec),@function
59 AROS_SLIB_ENTRY
(CacheClearE
,Exec
):
60 movem.
l %d2-
%d4
,-(%sp
)
62 move.
l address
(%sp
),%d1
65 move.
l length
(%sp
),%d4
67 movem.
l (%sp
)+,%d2-
%d4