
B-63322EN-2/01 6. SYSTEM CALLS
- 33 -
6.12 CACHE CONTROL
[Function name] sc_cache_off
[Function] Turns off the data or instruction cache in the processor.
[Format] void sc_cache_off (int kind);
[Input] int kind: Cache specification (0 = data cache and 1 = instruction cache)
[Output] None.
[Result] ----
[Note] This function can be called only from task No. 1 (for power-on time
processing).
The cache control specified using this function is effective for all tasks
except task No. 1.
NOTES
(1) Never call a system call function related to message
output or debug display access when interrupts are
disabled.
(2) System call functions (1) to (10) cannot be called from
task No. 1 (for power-on time processing).
(3) A debug display on the screen may take a high
occupancy ratio for a bus to the same data. Avoid
frequent updates.
As a guideline, limit the number of times that a system
call related to debug display to within several times per
start cycle of task No. 2.
(4) Do not use a cache control system call for any purpose
other than temporarily turning off the cache for
debugging. After you finish debugging, delete all
system calls related to cache control.
Turning off the cache makes the processor slow,
resulting an increase in the time required for the high-
level process and therefore leading to a system error.
0123456789abcdef
00 NL LF
10
20 SP ! “ # $ % & ‘ ( ) * + , - . /
300123456789: ;<=>?
40 @ A B C D E F G H I J K L M N O
50 P Q R S T U V W X Y Z [ \ ] ^ _
60
to
f0
Codes usable in message output and debug display