Topic : TOS - The Operating System
Author :
Version : tos.hyp (December 19, 2008)
Subject : Programmieren/Atari
Nodes : 3010
Index Size : 93790
HCP-Version : 5
Compiled on : Atari
@charset : atarist
@lang :
@default : Title
@help :
@options : +g -i -s +x +zz -t4
@width : 70
View Ref-File4.18.2 CacheCtrl TOS Name: »CacheCtrl« - CPU cache management
Opcode: 160
Syntax: int32_t CacheCtrl( int16_t OpCode, int16_t Param );
Description: The XBIOS routine CacheCtrl serves for the management
of the CPU cache.
OpCode Description
0 Return 0 to check that function is implemented
1 Flush data cache
2 Flush instruction cache
3 Flush data and instruction cache
4 Inquire data cache mode
5 Activation/deactivation of the data cache
Param= 0, switch off
Param= 1, switch on
Write-back of the caches if necessary
6 Inquire instruction cache mode
7 Activation/deactivation of the command cache
Param= 0, switch off
Param= 1, switch on
Write-back of the caches if necessary
Note: Under the CT60 XBIOS, OpCode 5/7 has the same effect :
Param: 0 = disable all caches.
1 = enable all caches.
All caches are: Data cache, store buffer, branch cache,
instruction cache.
Return value: If successful the function returns the value 0, or
EBADRQ when a value larger than seven is passed for
OpCode. As an alternative the driver "CPU Cache Control Driver
v1.10" by Robert Federle and Thomas Tempelmann is
available for other computers.
Availability: The function ist available on the Milan from TOS 4.06,
in CT60 XBIOS as of Version v0.98a.
Group: Special commands See Also: Binding