Important: The information in this document is obsolete and should not be used for new development.
FlushCodeCacheRange
You can use theFlushCodeCacheRange
function to flush a portion of the instruction cache.
FUNCTION FlushCodeCacheRange (address: UNIV Ptr; count: LongInt): OSErr;
address
- The starting address of the range to flush.
count
- The size, in bytes, of the range to flush.
DESCRIPTION
TheFlushCodeCacheRange
function flushes the current contents of the instruction cache.FlushCodeCacheRange
is an optimized version ofFlushCodeCache
and is intended for use on processors such as the MC68040 that support flushing only a portion of the instruction cache. On processors that do not have this capability,FlushCodeCacheRange
simply flushes the entire instruction cache.The
FlushCodeCacheRange
function might flush a larger portion of the instruction cache than requested if it would be inefficient to satisfy the request exactly.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector forFlushCodeCacheRange
are
Trap macro Selector _HWPriv $0009 The registers on entry and exit for
FlushCodeCacheRange
are
Registers on entry A0 Starting address of the range to flush A1 Number of bytes to flush D0 Routine selector
Registers on exit D0 Result code RESULT CODES
noErr 0 No error hwParamErr -502 Processor does not support flushing a range