AMX Target Guide Computer Accessories User Manual


 
AMX 68000 Target Guide
K
A
DAK
B-9
cjcfhwbcache cjcfhwbcache
cjcfhwdcache cjcfhwdcache
cjcfhwicache cjcfhwicache
Purpose Flush and Enable/Disable Caches
Used by
n Task o ISP o Timer Procedure n Restart Procedure n Exit Procedure
Setup Prototype in file
CJZZZIF.H.
#include "CJZZZ.H"
void CJ_CCPP cjcfhwbcache(int operation);
void CJ_CCPP cjcfhwdcache(int operation);
void CJ_CCPP cjcfhwicache(int operation);
Description operation = 0 to force the caches to be flushed and disabled.
operation = 1 to force the caches to be flushed and enabled.
Interrupts
n Disabled o Enabled n Restored
Returns Nothing
Cjcfhwbcache flushes and disables (or enables) both the data and
instruction caches.
Cjcfhwdcache flushes and disables (or enables) only the data cache.
Cjcfhwicache flushes and disables (or enables) only the instruction
cache.
Note These procedures can be called even if your Target Parameter File
indicates that you are targeting an M68000 processor with no cache or
only one kind of cache. In such cases, the procedures only affect the
caches which exist.
Restrictions ISPs and Timer Procedures must not use these procedures. Since
interrupts are disabled while the caches are flushed, use caution when
calling these procedures or system performance will be degraded,
especially if the cache sizes are large.