(C) 1998 AROS - The Amiga Research OS


NAME
#include <proto/exec.h>

ULONG CacheControl (cacheBits , cacheMask)

LOCATION
In SysBase at offset 108

SYNOPSIS
ULONG cacheBits
ULONG cacheMask

FUNCTION
This function will provide global control of all the processor instruction and data caches. It is not possible to have per task control.

The actions undertaken by this function are very CPU dependant, however the actions performed will match the specified options as close as is possible.

The commands currently defined in the include file exec/execbase.h are closely related to the cache control register of the Motorola MC68030 CPU.

INPUTS
cacheBits
The new state of the bits
cacheMask
A mask of the bits you wish to change.

RESULT
oldBits - The complete value of the cache control bits prior to the call of this function.

Your requested actions will have been performed. As a side effect this function will also cause the caches to be cleared.

EXAMPLE

SEE ALSO
CacheClearE(), CacheClearU()

NOTES
On CPU's without a separate instruction and data cache, these will be considered as equal.

BUGS

INTERNALS
This function requires replacing in $(KERNEL), or possibly even $(ARCH) in some cases.

HISTORY
23.10.1998 hkiel
Changes for use with aros_print_not_implemented() macro
20.10.1998 hkiel
Amiga Research OS
31.08.1998 hkiel
Added #warning for functions which are TODO
05.08.1997 iaint
Kernel Changes - These are mostly functions which are normally implemented by the kernel, but might not be.